phantom: migrate secrets to sops

This commit is contained in:
Leonardo Eugênio 2026-02-15 03:47:47 -03:00
parent 5f57fb269a
commit 3be05b100b
11 changed files with 24 additions and 102 deletions

View file

@ -11,7 +11,7 @@
https = true;
config = {
dbtype = "sqlite"; # TODO: move to single postgres db
adminpassFile = config.age.secrets.phantom-nextcloud.path;
adminpassFile = config.sops.secrets."nextcloud/default-password".path;
};
};
@ -20,12 +20,9 @@
enableACME = true;
};
age = {
secrets.phantom-nextcloud = {
file = ../../secrets/phantom-nextcloud.age;
mode = "400";
owner = "nextcloud";
group = "nextcloud";
};
sops.secrets."nextcloud/default-password" = {
mode = "400";
owner = "nextcloud";
group = "nextcloud";
};
}