diff --git a/modules/nix/default.nix b/modules/nix/default.nix index 14bdf3f..d6e0fa5 100644 --- a/modules/nix/default.nix +++ b/modules/nix/default.nix @@ -7,9 +7,11 @@ in { config = lib.mkIf cfg.enable { nix = { settings = { - substituters = - [ "https://cache.nixos.org" "https://nix-community.cachix.org" ]; - trusted-public-keys = [ + substituters = lib.mkForce [ + "https://cache.nixos.org" + "https://nix-community.cachix.org" + ]; + trusted-public-keys = lib.mkForce [ "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=" "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=" ]; @@ -20,14 +22,14 @@ in { auto-optimise-store = true; allowed-users = [ "*" ]; experimental-features = [ "nix-command" "flakes" ]; - warn-dirty = false; + warn-dirty = true; use-xdg-base-directories = true; }; package = pkgs.nix; - registry = mkForce (lib.mapAttrs (_: flake: { inherit flake; })) ((lib.filterAttrs (_: lib.isType "flake")) self.inputs) // { + registry = lib.mkForce ((lib.mapAttrs (_: flake: { inherit flake; })) ((lib.filterAttrs (_: lib.isType "flake")) self.inputs) // { self.flake = self; - }; - nixPath = mkForce [ "/etc/nix/path" ]; + }); + nixPath = lib.mkForce [ "/etc/nix/path" ]; }; nixpkgs = {