diff options
Diffstat (limited to 'modules/profiles')
-rw-r--r-- | modules/profiles/common.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/profiles/common.nix b/modules/profiles/common.nix index 0be2be96..39535d4f 100644 --- a/modules/profiles/common.nix +++ b/modules/profiles/common.nix @@ -56,6 +56,14 @@ with lib; "headcounter.org:/7YANMvnQnyvcVB6rgFTdb8p5LG1OTXaO+21CaOSBzg=" ]; + environment.variables.NIXPKGS_CONFIG = let + nixpkgsCfg = toString (pkgs.writeText "nixpkgs-try-config.nix" '' + if (builtins.tryEval <nixpkgs-config>).success + then import <nixpkgs-config> + else {} + ''); + in mkIf config.vuizvui.enableGlobalNixpkgsConfig (mkForce nixpkgsCfg); + nix.nixPath = let nixpkgs = import ../../nixpkgs-path.nix; rootChannelsPath = "/nix/var/nix/profiles/per-user/root/channels"; |