sopt-nix units restarting, secrets reroll

This commit is contained in:
bogale 2026-10-29 12:34:13 +09:00
commit fc7c26b2f5
10 changed files with 37 additions and 28 deletions

View file

@ -49,7 +49,7 @@
};
sops = {
secrets = {
awg1-spec = { };
awg1-spec.restartUnits = [ "wg-quick-awg0.service" ];
cf-token = { };
};
templates.awg1-conf.content = ''
@ -67,8 +67,8 @@
];
users = {
groups = {
php.gid = 1568;
vmail.gid = 1819;
php = { };
vmail = { };
};
users = {
nginx.extraGroups = [
@ -79,7 +79,6 @@
php = {
group = "php";
isSystemUser = true;
uid = 1568;
};
root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPTb4c1ISQSV34GN27GgaJ08jpiRM3Wul/iSWjQ6emTq"
@ -87,7 +86,6 @@
vmail = {
group = "vmail";
isSystemUser = true;
uid = 1819;
};
};
};

View file

@ -105,7 +105,7 @@ in
group = "dovecot2";
mode = "0440";
};
smtp-sasl = { };
smtp-sasl.restartUnits = [ "postfix-setup.service" ];
};
systemd.tmpfiles.rules = [ "d ${postfixDir} 0700 postfix" ];
}

View file

@ -175,7 +175,8 @@
grafana-key = {
group = "grafana";
mode = "0440";
restartUnits = [ "grafana.service" ];
};
vaultwarden-env = { };
vaultwarden-env.restartUnits = [ "vaultwarden.service" ];
};
}