snipe-it
This commit is contained in:
parent
995671dd46
commit
e085b8d286
6 changed files with 58 additions and 36 deletions
33
hosts/ds9/snipe-it.nix
Normal file
33
hosts/ds9/snipe-it.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
{
|
||||
users.users.nginx.isSystemUser = true;
|
||||
users.users.nginx.group = "nginx";
|
||||
users.groups.nginx = { };
|
||||
services.nginx.enable = mkForce false;
|
||||
services.nginx.virtualHosts."snipe-it" = mkForce null;
|
||||
users.users.caddy.extraGroups = [ config.services.snipe-it.group ];
|
||||
ragon.agenix.secrets.ds9SnipeIt = {
|
||||
group = config.services.snipe-it.group;
|
||||
owner = config.services.snipe-it.user;
|
||||
mode = "440";
|
||||
};
|
||||
services.snipe-it = {
|
||||
enable = true;
|
||||
database.createLocally = true;
|
||||
mail.driver = "sendmail";
|
||||
appURL = "https://snipe-it.hailsatan.eu";
|
||||
hostName = "snipe-it";
|
||||
appKeyFile = config.age.secrets.ds9SnipeIt.path;
|
||||
mail.from.address = "root@hailsatan.eu";
|
||||
};
|
||||
ragon.persist.extraDirectories = [
|
||||
config.services.snipe-it.dataDir
|
||||
];
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue