treewide: move nixos modules
This commit is contained in:
parent
d84be7c616
commit
8eff4c5e4f
73 changed files with 62 additions and 62 deletions
|
@ -1,42 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
options.chvp.services.accentor.enable = lib.mkOption {
|
||||
default = false;
|
||||
example = true;
|
||||
};
|
||||
|
||||
config = lib.mkIf config.chvp.services.accentor.enable {
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
dataDir = "${config.chvp.dataPrefix}/var/lib/postgresql/${config.services.postgresql.package.psqlSchema}";
|
||||
};
|
||||
|
||||
services.accentor = {
|
||||
enable = true;
|
||||
home = "${config.chvp.dataPrefix}/var/lib/accentor";
|
||||
hostname = "accentor.vanpetegem.me";
|
||||
environmentFile = config.age.secrets."passwords/services/accentor".path;
|
||||
rescanTimer = {
|
||||
enable = true;
|
||||
dates = "00:00";
|
||||
};
|
||||
nginx = {
|
||||
forceSSL = true;
|
||||
useACMEHost = "vanpetegem.me";
|
||||
};
|
||||
};
|
||||
|
||||
security.doas.extraRules = [{
|
||||
users = [ "charlotte" ];
|
||||
noPass = true;
|
||||
cmd = "accentor-console";
|
||||
runAs = "accentor";
|
||||
}];
|
||||
|
||||
age.secrets."passwords/services/accentor" = {
|
||||
file = ../../../secrets/passwords/services/accentor.age;
|
||||
owner = "accentor";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue