1
0
Fork 0

Make sure current config is copied to store, add environment variable for quick/easy access.

This commit is contained in:
Kevin Baensch 2019-07-11 12:38:37 +02:00
parent d53a5b9571
commit 54fc2a5853
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,9 @@ in {
};
config = mkIf cfg.enable {
environment.variables = {
NIXOS_CONFIG_PATH = "${copySysConf}";
};
nix = mkIf cfg.addToNixPath {
# Do not use lib.optionals as it would override the default nixPath
nixPath = [