nixos/services/archivebox: update service and dependencies

This commit is contained in:
Gabriel Arazas 2024-12-28 14:53:24 +08:00
parent 84e4c6a9a5
commit b38150e094
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -49,9 +49,6 @@ let
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
documentation = [ "https://docs.archivebox.io/" ];
preStart = ''
mkdir -p ${lib.escapeShellArg cfg.archivePath}
'';
path = [ cfg.package ] ++ cfg.extraPackages;
script = ''
echo "${lib.concatStringsSep "\n" value.urls}" \
@ -64,9 +61,6 @@ let
LockPersonality = true;
NoNewPrivileges = true;
CapabilityBoundingSet = [ ];
AmbientCapabilities = [ ];
PrivateTmp = true;
PrivateDevices = true;
@ -150,6 +144,7 @@ in
wget
curl
yt-dlp
readability-cli
] ++ lib.optional config.programs.git.enable config.programs.git.package;
defaultText = ''
Chromium, NodeJS, wget, yt-dlp, and git if enabled.
@ -179,6 +174,8 @@ in
systemd.services = lib.mapAttrs' mkJobService cfg.jobs;
systemd.timers = lib.mapAttrs' mkTimerUnit cfg.jobs;
users.groups.archivebox = { };
users.users.archivebox = {
group = config.users.groups.archivebox.name;
isNormalUser = true;