move NIX_PATH from baseline to cli

This commit is contained in:
Sean Buckley 2021-08-17 11:29:43 -04:00
parent 7a6a3f76ba
commit 26e22d1ac8
2 changed files with 3 additions and 3 deletions

View file

@ -13,13 +13,10 @@
nixpkgs.config.allowUnfree = true;
environment.variables.NIXPKGS_ALLOW_UNFREE = "1";
environment.etc.nixpkgs.source = pkgs.path;
environment.systemPackages = map
(x: (pkgs.writeShellScriptBin "sc-${x}" "nixos-rebuild ${x} --refresh --flake github:buckley310/nixos-config"))
[ "switch" "build" "boot" ];
nix.nixPath = [ "nixpkgs=/etc/nixpkgs" ];
systemd.tmpfiles.rules = [
"e /nix/var/log - - - 30d"
"e /home/sean/Downloads - - - 9d"

View file

@ -80,6 +80,9 @@ in
];
environment.etc.nixpkgs.source = pkgs.path;
nix.nixPath = [ "nixpkgs=/etc/nixpkgs" ];
environment.etc."pip.conf".text = ''
[install]
no-warn-script-location = false