mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
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.
This commit is contained in:
parent
e9d55ab771
commit
534a300768
@ -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";
|
||||
};
|
||||
};
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user