Upgraded secrets
This commit is contained in:
parent
5cea32b66f
commit
e3affcd571
1 changed files with 5 additions and 3 deletions
|
|
@ -1,4 +1,6 @@
|
|||
{config, ...}: {
|
||||
{config, ...}: let
|
||||
serviceUser = x: config.systemd.services.${x}.serviceConfig.User;
|
||||
in {
|
||||
age.secrets = {
|
||||
transferSh = {
|
||||
file = ./transfer-sh.age;
|
||||
|
|
@ -8,7 +10,7 @@
|
|||
file = ./dcbot.age;
|
||||
owner =
|
||||
if config.niksos.server
|
||||
then "dcbot" # "dcbot" doesn't exist on e.g laptop.
|
||||
then serviceUser "dcbot" # "dcbot" doesn't exist on e.g laptop.
|
||||
else "root";
|
||||
};
|
||||
password.file = ./password.age;
|
||||
|
|
@ -23,7 +25,7 @@
|
|||
mail-admin = {
|
||||
owner =
|
||||
if config.niksos.server
|
||||
then "stalwart-mail"
|
||||
then serviceUser "stalwart-mail"
|
||||
else "root";
|
||||
file = ./mail-admin.age;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue