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.
This commit is contained in:
Bjørn Forsman 2024-09-10 21:29:41 +02:00
parent 801388a6fa
commit 1cb392fdcd

View File

@ -498,7 +498,9 @@ in
})
];
# For interactive use.
environment.systemPackages = [ pkgs.nut ];
environment.variables = envVars;
networking.firewall = lib.mkIf cfg.openFirewall {
allowedTCPPorts =