diff --git a/modules/servers/qbittorrent.nix b/modules/servers/qbittorrent.nix index 737b955..accf79f 100644 --- a/modules/servers/qbittorrent.nix +++ b/modules/servers/qbittorrent.nix @@ -53,16 +53,19 @@ in my.network.firewall.additionalPorts = [ config.my.servers.qbittorrent.port ]; home-manager.users.jawz.xdg.dataFile.vuetorrent.source = vuetorrent; home-manager.users.jawz.imports = [ - ({ lib, ... }: { - home.activation.qbittorrentAutorunCommand = lib.hm.dag.entryAfter [ "writeBoundary" ] '' - conf=/home/jawz/.config/qBittorrent/qBittorrent.conf - if [ -f "$conf" ]; then - sed -i \ - 's|^program=.*$|program=${torrentCompletionScript} %F|' \ - "$conf" - fi - ''; - }) + ( + { lib, ... }: + { + home.activation.qbittorrentAutorunCommand = lib.hm.dag.entryAfter [ "writeBoundary" ] '' + conf=/home/jawz/.config/qBittorrent/qBittorrent.conf + if [ -f "$conf" ]; then + sed -i \ + 's|^program=.*$|program=${torrentCompletionScript} %F|' \ + "$conf" + fi + ''; + } + ) ]; sops.secrets = let