mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 18:41:34 +01:00
sops: Make secrets root owned when possible
This commit is contained in:
parent
63d025f00f
commit
0cc7c80407
2 changed files with 6 additions and 10 deletions
|
|
@ -27,17 +27,13 @@ in
|
|||
ports.list = [ cfg.port ];
|
||||
};
|
||||
|
||||
sops =
|
||||
let
|
||||
sops = {
|
||||
secrets."hedgedoc/gitlab-auth-secret" = { };
|
||||
templates."hedgedoc/environment" = {
|
||||
owner = config.users.users.hedgedoc.name;
|
||||
in
|
||||
{
|
||||
secrets."hedgedoc/gitlab-auth-secret".owner = owner;
|
||||
templates."hedgedoc/environment" = {
|
||||
inherit owner;
|
||||
content = "GITLAB_CLIENTSECRET=${config.sops.placeholder."hedgedoc/gitlab-auth-secret"}";
|
||||
};
|
||||
content = "GITLAB_CLIENTSECRET=${config.sops.placeholder."hedgedoc/gitlab-auth-secret"}";
|
||||
};
|
||||
};
|
||||
|
||||
services.hedgedoc = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue