mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
nixos/ups: set env vars in the global environment
This allows using upsdrvctl interactively, which otherwise tries to use
a missing ups.conf in the Nix store, instead of the correct
/etc/nut/ups.conf.
(cherry picked from commit 1cb392fdcd
)
This commit is contained in:
parent
7ea9a39b4d
commit
6ecc647b4e
@ -501,7 +501,9 @@ in
|
||||
})
|
||||
];
|
||||
|
||||
# For interactive use.
|
||||
environment.systemPackages = [ pkgs.nut ];
|
||||
environment.variables = envVars;
|
||||
|
||||
networking.firewall = mkIf cfg.openFirewall {
|
||||
allowedTCPPorts =
|
||||
|
Loading…
Reference in New Issue
Block a user