diff --git a/flake.nix b/flake.nix index 2c8937f..d370008 100644 --- a/flake.nix +++ b/flake.nix @@ -105,6 +105,7 @@ } lix-module.nixosModules.default sops-nix.nixosModules.sops + self.nixosModules.default ./common ./hosts/rico0 ]; diff --git a/hosts/rico0/default.nix b/hosts/rico0/default.nix index 662850a..59c4244 100644 --- a/hosts/rico0/default.nix +++ b/hosts/rico0/default.nix @@ -1,4 +1,4 @@ -{ lib, ... }: { +_: { imports = [ ./hardware ./programs @@ -8,26 +8,9 @@ ./security.nix ]; - nix.gc = { - automatic = true; - dates = "Fri *-*-* 00:00:00"; - options = "--delete-old"; - randomizedDelaySec = "1h"; - }; - - documentation = { - enable = lib.mkDefault false; - doc.enable = lib.mkDefault false; - info.enable = lib.mkDefault false; - man.enable = lib.mkDefault false; - nixos.enable = lib.mkDefault false; - }; - - xdg = { - autostart.enable = lib.mkDefault false; - icons.enable = lib.mkDefault false; - mime.enable = lib.mkDefault false; - sounds.enable = lib.mkDefault false; + nodeconfig = { + minimize = true; + nix.auto-gc = true; }; # https://github.com/NixOS/nixpkgs/issues/126755#issuecomment-869149243 diff --git a/hosts/rico0/programs/default.nix b/hosts/rico0/programs/default.nix index 931dc2d..4bde076 100644 --- a/hosts/rico0/programs/default.nix +++ b/hosts/rico0/programs/default.nix @@ -6,7 +6,6 @@ ]; programs = { - command-not-found.enable = lib.mkDefault false; git.enable = true; };