diff --git a/configuration/common/default.nix b/configuration/common/default.nix index 0e25af1..01addc8 100644 --- a/configuration/common/default.nix +++ b/configuration/common/default.nix @@ -113,6 +113,23 @@ ]; }; + # Pin current nixpkgs channel and flake registry to the nixpkgs version + # the host got build with + nix.nixPath = lib.mkForce [ "nixpkgs=${lib.cleanSource pkgs.path}" ]; + nix.registry = { + "nixpkgs" = { + from = { + type = "indirect"; + id = "nixpkgs"; + }; + to = { + type = "path"; + path = lib.cleanSource pkgs.path; + }; + exact = true; + }; + }; + services.fstrim.enable = true; clerie.nixfiles.enable = true;