nix: set NIX_PATH per device versions at buildtime

Previously all devices would have NIX_PATH set on the common verion file
defindd in *nix/variables/versions.nix*. Now NIX_PATH is populated with
the versions of the respective device.
This commit is contained in:
steveej 2020-10-16 22:31:01 +02:00
parent 3bcf7b0397
commit 522d7279bd
10 changed files with 77 additions and 48 deletions

View file

@ -6,7 +6,7 @@
imports = [
"${<home-manager-module>}/nixos"
];
home-manager.users.root = import ../../../home-manager/configuration/text-minimal.nix;
home-manager.users.root = import ../../../home-manager/configuration/text-minimal.nix { inherit pkgs; };
nixpkgs.config = {
allowBroken = false;

View file

@ -29,6 +29,10 @@
}
'';
environment.variables = {
NIX_PATH = lib.mkForce pkgs.nixPath;
};
# Fonts, I18N, Date ...
fonts.fonts = [
pkgs.corefonts