Migrated from default.nix to configuration.nix
This commit is contained in:
@@ -6,10 +6,11 @@
|
||||
./hardware-configuration.nix
|
||||
|
||||
# Import modules
|
||||
../../modules/system/default.nix
|
||||
../../modules/system
|
||||
];
|
||||
|
||||
settings = {
|
||||
hostname = "ch-clt-dsk01";
|
||||
display-manager = "gdm";
|
||||
desktop-environments = {
|
||||
cosmic.enable = false;
|
||||
@@ -37,20 +38,14 @@
|
||||
};
|
||||
};
|
||||
|
||||
nix.settings = {
|
||||
experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
substituters = [
|
||||
"https://nix-community.cachix.org"
|
||||
"https://cosmic.cachix.org/"
|
||||
];
|
||||
|
||||
trusted-public-keys = [
|
||||
"cosmic.cachix.org-1:Dya9IyXD4xdBehWjrkPv6rtxpmMdRel02smYzA85dPE="
|
||||
];
|
||||
# Users
|
||||
users.users.kiiwy = {
|
||||
isNormalUser = true;
|
||||
description = "Christa Boomers";
|
||||
extraGroups = [ "networkmanager" "wheel" "dialout" ];
|
||||
};
|
||||
|
||||
# Bootloader.
|
||||
# Bootloader
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader.grub = {
|
||||
enable = true;
|
||||
@@ -59,28 +54,5 @@
|
||||
configurationLimit = 32;
|
||||
};
|
||||
|
||||
networking.hostName = "ch-clt-dsk01"; # Define your hostname.
|
||||
|
||||
networking.firewall = {
|
||||
enable = true;
|
||||
allowedTCPPorts = [ 80 443 53 ];
|
||||
allowedUDPPorts = [ 80 443 53 ];
|
||||
};
|
||||
|
||||
users.users.kiiwy = {
|
||||
isNormalUser = true;
|
||||
description = "Christa Boomers";
|
||||
extraGroups = [ "networkmanager" "wheel" "dialout" ];
|
||||
};
|
||||
|
||||
nix.settings.trusted-users = [ "root" "kiiwy" ];
|
||||
|
||||
# Prevent system freeze on high load
|
||||
services.earlyoom = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
system.stateVersion = "24.11";
|
||||
}
|
Reference in New Issue
Block a user