mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
nixos/services/archivebox: update service and dependencies
This commit is contained in:
parent
84e4c6a9a5
commit
b38150e094
@ -49,9 +49,6 @@ let
|
|||||||
after = [ "network-online.target" ];
|
after = [ "network-online.target" ];
|
||||||
wants = [ "network-online.target" ];
|
wants = [ "network-online.target" ];
|
||||||
documentation = [ "https://docs.archivebox.io/" ];
|
documentation = [ "https://docs.archivebox.io/" ];
|
||||||
preStart = ''
|
|
||||||
mkdir -p ${lib.escapeShellArg cfg.archivePath}
|
|
||||||
'';
|
|
||||||
path = [ cfg.package ] ++ cfg.extraPackages;
|
path = [ cfg.package ] ++ cfg.extraPackages;
|
||||||
script = ''
|
script = ''
|
||||||
echo "${lib.concatStringsSep "\n" value.urls}" \
|
echo "${lib.concatStringsSep "\n" value.urls}" \
|
||||||
@ -64,9 +61,6 @@ let
|
|||||||
LockPersonality = true;
|
LockPersonality = true;
|
||||||
NoNewPrivileges = true;
|
NoNewPrivileges = true;
|
||||||
|
|
||||||
CapabilityBoundingSet = [ ];
|
|
||||||
AmbientCapabilities = [ ];
|
|
||||||
|
|
||||||
PrivateTmp = true;
|
PrivateTmp = true;
|
||||||
PrivateDevices = true;
|
PrivateDevices = true;
|
||||||
|
|
||||||
@ -150,6 +144,7 @@ in
|
|||||||
wget
|
wget
|
||||||
curl
|
curl
|
||||||
yt-dlp
|
yt-dlp
|
||||||
|
readability-cli
|
||||||
] ++ lib.optional config.programs.git.enable config.programs.git.package;
|
] ++ lib.optional config.programs.git.enable config.programs.git.package;
|
||||||
defaultText = ''
|
defaultText = ''
|
||||||
Chromium, NodeJS, wget, yt-dlp, and git if enabled.
|
Chromium, NodeJS, wget, yt-dlp, and git if enabled.
|
||||||
@ -179,6 +174,8 @@ in
|
|||||||
systemd.services = lib.mapAttrs' mkJobService cfg.jobs;
|
systemd.services = lib.mapAttrs' mkJobService cfg.jobs;
|
||||||
systemd.timers = lib.mapAttrs' mkTimerUnit cfg.jobs;
|
systemd.timers = lib.mapAttrs' mkTimerUnit cfg.jobs;
|
||||||
|
|
||||||
|
users.groups.archivebox = { };
|
||||||
|
|
||||||
users.users.archivebox = {
|
users.users.archivebox = {
|
||||||
group = config.users.groups.archivebox.name;
|
group = config.users.groups.archivebox.name;
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user