feat: alejandra -> nixfmt

This commit is contained in:
uku 2024-12-25 18:21:24 +01:00
parent acc6e6e825
commit 65ce9c5882
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
56 changed files with 737 additions and 456 deletions

View file

@ -2,10 +2,12 @@
_utils,
config,
...
}: let
upsdPass = _utils.setupSingleSecret config "upsdUserPass" {};
in {
imports = [upsdPass.generate];
}:
let
upsdPass = _utils.setupSingleSecret config "upsdUserPass" { };
in
{
imports = [ upsdPass.generate ];
power.ups = {
enable = true;
@ -20,8 +22,11 @@ in {
users.admin = {
passwordFile = upsdPass.path;
instcmds = ["ALL"];
actions = ["SET" "FSD"];
instcmds = [ "ALL" ];
actions = [
"SET"
"FSD"
];
};
ups.eaton-3s-850 = {
@ -57,10 +62,10 @@ in {
{
job_name = "nut";
metrics_path = "/ups_metrics";
params.ups = ["eaton-3s-850"];
params.ups = [ "eaton-3s-850" ];
static_configs = [
{
targets = ["localhost:${builtins.toString config.services.prometheus.exporters.nut.port}"];
targets = [ "localhost:${builtins.toString config.services.prometheus.exporters.nut.port}" ];
labels.ups = "eaton-3s-850";
}
];