diff --git a/modules/misc/ids.nix b/modules/misc/ids.nix index 998cf59927d5..218bd0ed47a7 100644 --- a/modules/misc/ids.nix +++ b/modules/misc/ids.nix @@ -75,7 +75,6 @@ in wwwrun = 54; spamd = 56; nslcd = 58; - deluge = 60; # When adding a uid, make sure it doesn't match an existing gid. @@ -133,7 +132,6 @@ in networkmanager = 57; nslcd = 58; scanner = 59; - deluge = 60; # When adding a gid, make sure it doesn't match an existing uid. diff --git a/modules/services/torrent/deluge.nix b/modules/services/torrent/deluge.nix index 87c8029739f5..0ef5c8fe3191 100644 --- a/modules/services/torrent/deluge.nix +++ b/modules/services/torrent/deluge.nix @@ -3,8 +3,6 @@ with pkgs.lib; let - uid = config.ids.uids.deluge; - gid = config.ids.gids.deluge; cfg = config.services.deluge; cfg_web = config.services.deluge.web; in { @@ -43,10 +41,9 @@ in { }; systemd.services.delugeweb = mkIf cfg_web.enable { - after = [ "network.target" "deluged.service" ]; + after = [ "network.target" ]; description = "Deluge BitTorrent WebUI"; wantedBy = [ "multi-user.target" ]; - wants = [ "deluged.service" ]; path = [ pkgs.pythonPackages.deluge ]; script = "${pkgs.pythonPackages.deluge}/bin/deluge --ui web"; serviceConfig.User = "deluge"; @@ -56,13 +53,12 @@ in { environment.systemPackages = [ pkgs.pythonPackages.deluge ]; users.extraUsers.deluge = { - inherit uid; group = "deluge"; home = "/var/lib/deluge/"; createHome = true; description = "Deluge Daemon user"; }; - users.extraGroups.deluge.gid = gid; + users.extraGroups.deluge = {}; }; }