valkyrie: Set HOME variable in coredns service env

This commit is contained in:
Erwin Boskma 2024-04-23 16:52:30 +02:00
parent b708e4f334
commit 4a624b20cb
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk

View file

@ -24,5 +24,13 @@
'';
};
systemd.services.coredns.serviceConfig.EnvironmentFile = [ config.sops.secrets.coredns-env.path ];
systemd.services.coredns = {
environment = {
HOME = "%S/coredns";
};
serviceConfig = {
StateDirectory = "coredns";
EnvironmentFile = [ config.sops.secrets.coredns-env.path ];
};
};
}