2024-12-24 10:20:09 +01:00
|
|
|
{ pkgs, ... }:
|
2024-03-09 17:18:36 +01:00
|
|
|
|
|
|
|
{
|
2024-06-20 13:41:57 +02:00
|
|
|
imports = [
|
2024-12-23 17:03:36 +01:00
|
|
|
# Import hardware configuration
|
2024-03-12 17:31:56 +01:00
|
|
|
./hardware-configuration.nix
|
2024-06-20 13:41:57 +02:00
|
|
|
|
2024-12-23 17:03:36 +01:00
|
|
|
# Import modules
|
|
|
|
../../modules/system/default.nix
|
2024-03-12 17:31:56 +01:00
|
|
|
];
|
|
|
|
|
2024-12-23 17:03:36 +01:00
|
|
|
settings = {
|
|
|
|
display-manager = "cosmic-greeter";
|
|
|
|
desktop-environments = {
|
|
|
|
cosmic.enable = true;
|
|
|
|
hyprland.enable = true;
|
2024-12-27 09:23:15 +01:00
|
|
|
gnome.enable = false;
|
2024-12-23 17:03:36 +01:00
|
|
|
};
|
|
|
|
applications = {
|
|
|
|
common.enable = true;
|
|
|
|
steam.enable = true;
|
|
|
|
thunar.enable = true;
|
|
|
|
};
|
|
|
|
services = {
|
|
|
|
docker.enable = true;
|
|
|
|
quickemu.enable = true;
|
|
|
|
sunshine.enable = false;
|
|
|
|
garbage-collection.enable = true;
|
|
|
|
};
|
|
|
|
hardware = {
|
|
|
|
fprint.enable = true;
|
|
|
|
printing.enable = true;
|
|
|
|
bluetooth.enable = true;
|
|
|
|
firewall.enable = true;
|
|
|
|
locale.enable = true;
|
2024-12-28 17:04:36 +01:00
|
|
|
nvidia.enable = false;
|
2024-12-23 17:03:36 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-03-23 09:32:03 +01:00
|
|
|
nix.settings = {
|
|
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
|
|
|
|
substituters = [
|
|
|
|
"https://nix-community.cachix.org"
|
2024-12-10 18:38:17 +01:00
|
|
|
"https://cosmic.cachix.org/"
|
|
|
|
];
|
|
|
|
|
|
|
|
trusted-public-keys = [
|
|
|
|
"cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="
|
2024-03-23 09:32:03 +01:00
|
|
|
];
|
|
|
|
};
|
2024-03-12 17:31:56 +01:00
|
|
|
|
2025-01-09 08:26:58 +01:00
|
|
|
# Enable host
|
|
|
|
networking.hosts = {
|
|
|
|
"127.0.0.1" = [ "adguard.timo.bmrs.nl" "git.timo.bmrs.nl" "auth.timo.bmrs.nl" "ldap.timo.bmrs.nl" "dozzle.timo.bmrs.nl" "home.timo.bmrs.nl" "immich.timo.bmrs.nl" "paperless.timo.bmrs.nl" "search.timo.bmrs.nl" ];
|
|
|
|
};
|
|
|
|
|
2024-03-09 17:18:36 +01:00
|
|
|
# Bootloader.
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2024-03-12 17:31:56 +01:00
|
|
|
boot.loader.grub = {
|
2024-03-09 17:18:36 +01:00
|
|
|
enable = true;
|
2024-03-12 17:31:56 +01:00
|
|
|
efiSupport = true;
|
|
|
|
device = "nodev";
|
2024-09-12 18:39:59 +02:00
|
|
|
configurationLimit = 32;
|
2024-03-09 17:18:36 +01:00
|
|
|
};
|
|
|
|
|
2025-01-10 13:47:02 +01:00
|
|
|
networking.hostName = "ti-clt-lpt01"; # Define your hostname.
|
2024-03-09 17:18:36 +01:00
|
|
|
|
2025-01-07 10:17:48 +01:00
|
|
|
networking.firewall = {
|
|
|
|
enable = true;
|
|
|
|
allowedTCPPorts = [ 80 443 53 ];
|
|
|
|
allowedUDPPorts = [ 80 443 53 ];
|
|
|
|
};
|
|
|
|
|
2024-03-09 17:18:36 +01:00
|
|
|
users.users.xeovalyte = {
|
|
|
|
isNormalUser = true;
|
|
|
|
description = "Timo Boomers";
|
2024-03-12 17:31:56 +01:00
|
|
|
extraGroups = [ "networkmanager" "wheel" "dialout" ];
|
2024-03-09 17:18:36 +01:00
|
|
|
};
|
|
|
|
|
2024-11-30 18:29:31 +01:00
|
|
|
nix.settings.trusted-users = [ "root" "xeovalyte" ];
|
|
|
|
|
2024-12-10 18:38:17 +01:00
|
|
|
# Prevent system freeze on high load
|
|
|
|
services.earlyoom = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
2024-06-06 09:09:50 +02:00
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
|
2024-06-02 12:10:28 +02:00
|
|
|
system.stateVersion = "24.05";
|
2024-03-09 17:18:36 +01:00
|
|
|
}
|