feat: nixos side of the config

Closes #20
This commit is contained in:
silver 2023-10-26 22:59:30 +01:00
parent 984ebc4fb0
commit 1e9b49f459

View file

@ -80,6 +80,7 @@
"${cfg.env.ldap}"
"${cfg.env.discord}"
"${cfg.env.mail}"
"${cfg.env.wolves}"
];
};
});
@ -124,6 +125,10 @@
type = types.str;
description = "Mail details, has EMAIL_SMTP, EMAIL_USER, EMAIL_PASS";
};
wolves = mkOption rec {
type = types.str;
description = "Mail details, has WOLVES_URL, WOLVES_KEY";
};
};
users = {
@ -213,12 +218,14 @@
"${cfg.env.ldap}"
"${cfg.env.discord}"
"${cfg.env.mail}"
"${cfg.env.wolves}"
];
};
restartTriggers = [
"${cfg.env.ldap}"
"${cfg.env.discord}"
"${cfg.env.mail}"
"${cfg.env.wolves}"
];
};
} // serviceGenerator scripts;