Seafile: read secret using python

This commit is contained in:
Jurn Wubben 2025-07-21 13:04:04 +02:00
parent 4fe684dd8d
commit 5fdfd7f004
3 changed files with 32 additions and 24 deletions

View file

@ -8,6 +8,7 @@
serviceUser = x: config.systemd.services.${x}.serviceConfig.User;
abstrServiceUser = x: config.services.${x}.user;
abstrServiceGroup = x: config.services.${x}.group;
in {
age.secrets = {
password.file = ./password.age;
@ -44,6 +45,7 @@ in {
seafile-oidc = mkIf server {
file = ./seafile-oidc.age;
owner = abstrServiceUser "seafile";
mode = "400";
};
};
}