Make sure current config is copied to store, add environment variable for quick/easy access.
This commit is contained in:
parent
d53a5b9571
commit
54fc2a5853
1 changed files with 3 additions and 0 deletions
|
@ -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 = [
|
||||
|
|
Loading…
Reference in a new issue