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

@ -1,3 +1,9 @@
{ pkgs }:
let
zshCurried = import ../programs/zsh.nix { inherit pkgs; };
in
{ pkgs
, config
, ... }:
@ -20,7 +26,7 @@ in {
../programs/libreoffice.nix
../programs/neovim.nix
../programs/pass.nix
../programs/zsh.nix
zshCurried
];
nixpkgs.config = {

View file

@ -1,3 +1,9 @@
{ pkgs }:
let
zshCurried = import ../programs/zsh.nix { inherit pkgs; };
in
{ pkgs
, config,
... }:
@ -17,7 +23,7 @@ in {
../programs/libreoffice.nix
../programs/neovim.nix
../programs/pass.nix
../programs/zsh.nix
zshCurried
];
nixpkgs.config = {

View file

@ -1,3 +1,9 @@
{ pkgs }:
let
zshCurried = import ../programs/zsh.nix { inherit pkgs; };
in
{ pkgs
, config
, ... }:
@ -9,7 +15,7 @@ in {
../profiles/common.nix
../profiles/nix-channels.nix
../programs/neovim.nix
../programs/zsh.nix
zshCurried
];
nixpkgs.config = {