diff options
author | Bruno Inec <contact@sweenu.xyz> | 2023-01-06 15:37:44 +0100 |
---|---|---|
committer | Bruno Inec <contact@sweenu.xyz> | 2023-01-20 00:39:32 +0100 |
commit | 8f10857af43c0f43fa1c64aa19add3e509ad7734 (patch) | |
tree | 7f200106e7d7407b9409662afabb60e312fbe8d1 /nixos | |
parent | 988feead01eb2766dbd65c5b7996f8e3d9034eb7 (diff) |
let systemd handle /var/lib/goeland creation
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/mail/goeland.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/services/mail/goeland.nix b/nixos/modules/services/mail/goeland.nix index aeeee97ea41c..e4a32de1dc3c 100644 --- a/nixos/modules/services/mail/goeland.nix +++ b/nixos/modules/services/mail/goeland.nix @@ -34,14 +34,15 @@ in }; config = mkIf cfg.enable { - systemd.tmpfiles.rules = [ "d ${cfg.databaseDirectory} 0750 goeland goeland -" ]; - services.goeland.settings.database = "${cfg.databaseDirectory}/goeland.db"; systemd.services.goeland = { serviceConfig = let confFile = tomlFormat.generate "config.toml" cfg.settings; in { ExecStart = "${pkgs.goeland}/bin/goeland run -c ${confFile}"; User = "goeland"; + Group = "goeland"; + StateDirectory = "goeland"; + StateDirectoryMode = "0750"; }; startAt = cfg.schedule; }; |