From 5f6b46008d9f7aa138084f57c5b0612ca15bbe33 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Fri, 29 Mar 2024 11:36:56 +0530 Subject: [PATCH] refactor systemd services --- home/services/aria2c.nix | 3 +-- home/services/transmission.nix | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/home/services/aria2c.nix b/home/services/aria2c.nix index 534fae0..35ccb72 100644 --- a/home/services/aria2c.nix +++ b/home/services/aria2c.nix @@ -7,7 +7,7 @@ ariang = { Unit = { Description = "AriaNg: Web frontend for aria2c"; - After = [ "network.target" "aria2c.service" ]; + After = [ "aria2c.service" ]; }; Install = { WantedBy = [ "default.target" ]; @@ -23,7 +23,6 @@ Unit = { Description = "Aria2c Download Manager"; Documentation = [ "man:aria2c(1)" ]; - After = [ "network.target" ]; }; Install = { WantedBy = [ "default.target" "ariang.service" ]; diff --git a/home/services/transmission.nix b/home/services/transmission.nix index 5322e42..0036708 100644 --- a/home/services/transmission.nix +++ b/home/services/transmission.nix @@ -9,7 +9,6 @@ Unit = { Description = "Transmission Daemon"; Documentation = [ "man:transmission-daemon(1)" ]; - After = [ "network.target" ]; }; Install = { WantedBy = [ "default.target" ]; @@ -17,7 +16,10 @@ Service = { Type = "simple"; ExecStart = '' - ${transmission-daemon} -f -c "${torrents-dir}/init" --incomplete-dir "${torrents-dir}/.incomplete" --download-dir "${torrents-dir}/downloads" --encryption-preferred --portmap --dht --lpd --utp --peerport 51414 --port 9092 + ${transmission-daemon} -f --encryption-preferred --portmap --dht --lpd --utp --peerport 51414 --port 9092 \ + -c "${torrents-dir}/init" \ + --incomplete-dir "${torrents-dir}/.incomplete" \ + --download-dir "${torrents-dir}/downloads" \ ''; }; };