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

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 = [