From 534a3007688e9a95117099a27535e107d9269ba5 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Tue, 7 Nov 2023 20:38:00 +0800 Subject: [PATCH] services/archivebox: remove `archivePath` option It is quite limiting to what workflow it allows. Though, this iteration now enforces it to be in `/var/lib/archivebox`, setting an arbitrary option is less desirable. --- modules/nixos/services/archivebox.nix | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) 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"; }; }; })