1
0

configuration/common: pin nixpkgs to host version for nix commands

This commit is contained in:
clerie 2023-05-19 10:06:47 +02:00
parent 05a2742a91
commit 6e2537341e

View File

@ -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; services.fstrim.enable = true;
clerie.nixfiles.enable = true; clerie.nixfiles.enable = true;