This commit is contained in:
mjallen18
2024-06-22 21:02:18 -05:00
parent 32d4a51208
commit c3767fd666
4 changed files with 135 additions and 11 deletions

View File

@@ -22,7 +22,7 @@ let
];
enableDisplayManager = false;
# adding a flag cause nixos cant figure itself out and broke shit that cant be fixed
enableUps = true;
enableUps = false;
in
{
imports = [
@@ -82,6 +82,8 @@ in
swag.enable = true;
tdarr.enable = true;
vscode.enable = true;
};
@@ -363,9 +365,9 @@ in
# Configure environment
environment = {
etc."nut/upsd.conf".source = /home/matt/upsd.conf;
etc."nut/upsd.users".source = /home/matt/upsd.users;
etc."nut/upsmon.conf".source = /home/matt/upsmon.conf;
# etc."nut/upsd.conf".source = /home/matt/upsd.conf;
# etc."nut/upsd.users".source = /home/matt/upsd.users;
# etc."nut/upsmon.conf".source = /home/matt/upsmon.conf;
# List packages installed in system profile. To search, run:
# $ nix search wget
@@ -425,18 +427,18 @@ in
monitor = "nasups@localhost 1 upsuser BogieDudie1 primary";
};
upsd = {
enable = true;
enable = enableUps;
listen = {
address = 0.0 0.0 0.0;
port = 3493;
};
};
users = {
actions = [ "SET" ];
instcmds = [ "ALL" ];
upsmon = "primary";
passwordFile = "/home/matt/ups.conf";
};
# users = {
# actions = [ "SET" ];
# instcmds = [ "ALL" ];
##* upsmon = "primary";
# passwordFile = "/home/matt/ups.conf";
# };
};
# Add UPS monitoring service