mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 06:19:00 +00:00
config: set NIX_PATH when channels are enabled
This commit is contained in:
parent
2df2bd2104
commit
02d7b34bdd
@ -193,8 +193,8 @@
|
||||
nix.channel.enable = lib.mkDefault false;
|
||||
|
||||
# Set several paths for the traditional channels.
|
||||
nix.nixPath =
|
||||
lib.mapAttrsToList
|
||||
nix.nixPath = lib.mkIf config.nix.channel.enable
|
||||
(lib.mapAttrsToList
|
||||
(name: source:
|
||||
let
|
||||
name' = if (name == "self") then "config" else name;
|
||||
@ -203,7 +203,7 @@
|
||||
inputs
|
||||
++ [
|
||||
"/nix/var/nix/profiles/per-user/root/channels"
|
||||
];
|
||||
]);
|
||||
|
||||
# Please clean your temporary crap.
|
||||
boot.tmp.cleanOnBoot = lib.mkDefault true;
|
||||
|
Loading…
Reference in New Issue
Block a user