Start using age for secret management
This commit is contained in:
parent
276c8f33c8
commit
da9160559c
39 changed files with 281 additions and 30 deletions
|
@ -106,7 +106,7 @@ in
|
|||
environment = env;
|
||||
path = [ pkgs.ffmpeg gems gems.wrappedRuby ];
|
||||
serviceConfig = {
|
||||
EnvironmentFile = "${config.chvp.dataPrefix}/var/secrets/accentor-api";
|
||||
EnvironmentFile = config.age.secrets."passwords/services/accentor".path;
|
||||
Type = "simple";
|
||||
User = "accentor";
|
||||
Group = "accentor";
|
||||
|
@ -128,7 +128,7 @@ in
|
|||
environment = env;
|
||||
path = [ pkgs.ffmpeg gems gems.wrappedRuby ];
|
||||
serviceConfig = {
|
||||
EnvironmentFile = "${config.chvp.dataPrefix}/var/secrets/accentor-api";
|
||||
EnvironmentFile = config.age.secrets."passwords/services/accentor".path;
|
||||
Type = "simple";
|
||||
User = "accentor";
|
||||
Group = "accentor";
|
||||
|
@ -140,6 +140,11 @@ in
|
|||
|
||||
}) 4));
|
||||
|
||||
age.secrets."passwords/services/accentor" = {
|
||||
file = ../secrets/passwords/services/accentor.age;
|
||||
owner = "accentor";
|
||||
};
|
||||
|
||||
users.users.accentor = {
|
||||
group = "accentor";
|
||||
home = "${config.chvp.dataPrefix}/var/lib/accentor";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue