1
0
Fork 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
1 changed files with 17 additions and 0 deletions

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