Skip to content

Commit

Permalink
only set config if not null and remove write perm
Browse files Browse the repository at this point in the history
silly copy n paste mistake
  • Loading branch information
fsnkty committed Oct 8, 2024
1 parent 3a440c2 commit 06914f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/services/torrent/qbittorrent.nix
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ in
mode = "700";
inherit (cfg) user group;
};
"${cfg.profileDir}/qBittorrent/config/qBittorrent.conf"."L+" = {
mode = "1500";
"${cfg.profileDir}/qBittorrent/config/qBittorrent.conf"."L+" = lib.mkIf (cfg.serverConfig != null) {
mode = "400";
inherit (cfg) user group;
argument = "${pkgs.writeText "qBittorrent.conf" (gendeepINI cfg.serverConfig)}";
};
Expand Down

0 comments on commit 06914f9

Please sign in to comment.