diff --git a/modules/common/nix.nix b/modules/common/nix.nix index 0f8b35c..8465cb8 100644 --- a/modules/common/nix.nix +++ b/modules/common/nix.nix @@ -1,20 +1,15 @@ -{ lib, inputs, config, ... }: { +{ ... }: { programs.git.enable = true; programs.nh = { enable = true; clean.enable = true; clean.extraArgs = "--keep-since 7d"; }; - nix = let flakeInputs = lib.filterAttrs (_: lib.isType "flake") inputs; - in { + nix = { settings = { experimental-features = [ "nix-command" "flakes" ]; - flake-registry = ""; - nix-path = config.nix.nixPath; }; optimise.automatic = true; - registry = lib.mapAttrs (_: flake: { inherit flake; }) flakeInputs; - nixPath = lib.mapAttrsToList (n: _: "${n}=flake:${n}") flakeInputs; }; system.autoUpgrade = { enable = true;