diff --git a/modules/nixos/services/archivebox.nix b/modules/nixos/services/archivebox.nix index a2bafb2e..df94cc8d 100644 --- a/modules/nixos/services/archivebox.nix +++ b/modules/nixos/services/archivebox.nix @@ -74,7 +74,8 @@ let ProtectKernelTunables = true; SystemCallFilter = "@system-service"; SystemCallErrorNumber = "EPERM"; - WorkingDirectory = cfg.archivePath; + + StateDirectory = "archivebox"; }; }; @@ -96,14 +97,6 @@ in options.services.archivebox = { enable = lib.mkEnableOption "Archivebox service"; - archivePath = lib.mkOption { - type = with lib.types; either path str; - description = '' - The path of the Archivebox archive. Must be an absolute path. - ''; - example = "/var/archives/archivebox-service"; - }; - jobs = lib.mkOption { type = with lib.types; attrsOf (submodule jobType); description = "A map of archiving tasks for the service."; @@ -175,7 +168,7 @@ in ProtectKernelTunables = true; SystemCallFilter = "@system-service"; SystemCallErrorNumber = "EPERM"; - WorkingDirectory = cfg.archivePath; + StateDirectory = "archivebox"; }; }; })