Uninterruptible power supply: Difference between revisions

Wo2wz (talk | contribs)
remove unnecessary portion under compatible hardware
m Added a comment to explain what the contents of passwordFile should contain. Paths to internal nix resources will throw an error, modified passwordFile to be to an absolute path instead.
 
Line 132: Line 132:
     # declarations. upsd.users
     # declarations. upsd.users
     users."nut-admin" = {
     users."nut-admin" = {
       passwordFile = "${../resources/ups-passwd.txt}";
      # A file that contains just the password.
       passwordFile = "/etc/nixos/ups-passwd.txt";
       upsmon = "primary";
       upsmon = "primary";
     };
     };
Line 147: Line 148:
       powerValue = 1;
       powerValue = 1;
       user = "nut-admin";
       user = "nut-admin";
       passwordFile = "${../resources/ups-passwd.txt}";
       passwordFile = "/etc/nixos/ups-passwd.txt";
       type = "primary";
       type = "primary";
     };
     };