Commit 1cb392fd authored by Bjørn Forsman's avatar Bjørn Forsman
Browse files

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.
parent 801388a6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -498,7 +498,9 @@ in
      })
    ];

    # For interactive use.
    environment.systemPackages = [ pkgs.nut ];
    environment.variables = envVars;

    networking.firewall = lib.mkIf cfg.openFirewall {
      allowedTCPPorts =