Skip to content

Commit

Permalink
nixos/ups: set env vars in the global environment
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bjornfor committed Sep 11, 2024
1 parent 801388a commit 1cb392f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nixos/modules/services/monitoring/ups.nix
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,9 @@ in
})
];

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

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

0 comments on commit 1cb392f

Please sign in to comment.