Add packages to NIX_PATH

This commit is contained in:
Henrik Lissner 2019-12-03 20:29:03 -05:00
parent 8d845e0dbf
commit 202ac6405c
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 2 additions and 1 deletions

View file

@ -12,6 +12,7 @@
nix = {
nixPath = options.nix.nixPath.default ++ [
"config=/etc/dotfiles/config"
"packages=/etc/dotfiles/packages"
];
autoOptimiseStore = true;
trustedUsers = [ "root" "@wheel" ];

2
deploy
View file

@ -31,4 +31,4 @@ nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs-unstable
nix-channel --update
nixos-generate-config --root "$PREFIX"
nixos-install --root "$PREFIX" -I "config=$DOTFILES/config"
nixos-install --root "$PREFIX" -I "config=$DOTFILES/config" -I "packages=$DOTFILES/packages"