From 55d9d233fec636269b549989f355e1060d25c34b Mon Sep 17 00:00:00 2001 From: JuliusFreudenberger Date: Sat, 18 Jan 2025 20:40:08 +0200 Subject: [PATCH] Rename network.nix to network-client.nix It contains setting up NetworkManager which is not needed for servers --- hosts/julius-framework/default.nix | 3 +-- modules/{network.nix => network-client.nix} | 0 modules/system.nix | 23 --------------------- 3 files changed, 1 insertion(+), 25 deletions(-) rename modules/{network.nix => network-client.nix} (100%) delete mode 100644 modules/system.nix diff --git a/hosts/julius-framework/default.nix b/hosts/julius-framework/default.nix index fd71247..712c251 100644 --- a/hosts/julius-framework/default.nix +++ b/hosts/julius-framework/default.nix @@ -8,10 +8,9 @@ imports = [ ../../modules/nix.nix - ../../modules/system.nix ../../modules/firmware.nix ../../modules/laptop.nix - ../../modules/network.nix + ../../modules/network-client.nix ../../modules/locale.nix ../../modules/timezone-imperatively.nix ../../modules/boot-login.nix diff --git a/modules/network.nix b/modules/network-client.nix similarity index 100% rename from modules/network.nix rename to modules/network-client.nix diff --git a/modules/system.nix b/modules/system.nix deleted file mode 100644 index 0183808..0000000 --- a/modules/system.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ - pkgs, - lib, - username, - ... -}: { - # do garbage collection weekly to keep disk usage low - nix = { - settings = { - experimental-features = ["nix-command" "flakes"]; - }; - - gc = { - automatic = lib.mkDefault true; - dates = lib.mkDefault "weekly"; - options = lib.mkDefault "--delete-older-than 7d"; - }; - }; - - # Allow unfree packages - nixpkgs.config.allowUnfree = true; - -}