From b38150e0940d4eaeb2b3822ca75cf9bf133b57cb Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Sat, 28 Dec 2024 14:53:24 +0800 Subject: [PATCH] nixos/services/archivebox: update service and dependencies --- modules/nixos/services/archivebox.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/nixos/services/archivebox.nix b/modules/nixos/services/archivebox.nix index d8f89861..3ba81461 100644 --- a/modules/nixos/services/archivebox.nix +++ b/modules/nixos/services/archivebox.nix @@ -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;