mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +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;
|
nix.channel.enable = lib.mkDefault false;
|
||||||
|
|
||||||
# Set several paths for the traditional channels.
|
# Set several paths for the traditional channels.
|
||||||
nix.nixPath =
|
nix.nixPath = lib.mkIf config.nix.channel.enable
|
||||||
lib.mapAttrsToList
|
(lib.mapAttrsToList
|
||||||
(name: source:
|
(name: source:
|
||||||
let
|
let
|
||||||
name' = if (name == "self") then "config" else name;
|
name' = if (name == "self") then "config" else name;
|
||||||
@ -203,7 +203,7 @@
|
|||||||
inputs
|
inputs
|
||||||
++ [
|
++ [
|
||||||
"/nix/var/nix/profiles/per-user/root/channels"
|
"/nix/var/nix/profiles/per-user/root/channels"
|
||||||
];
|
]);
|
||||||
|
|
||||||
# Please clean your temporary crap.
|
# Please clean your temporary crap.
|
||||||
boot.tmp.cleanOnBoot = lib.mkDefault true;
|
boot.tmp.cleanOnBoot = lib.mkDefault true;
|
||||||
|
Loading…
Reference in New Issue
Block a user