From e35652cac0be31ea01f948f5bb37bb40db9c1cee Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Thu, 19 Dec 2019 13:03:15 -0700 Subject: [PATCH] create media group --- profiles/misc/plex.nix | 3 +++ profiles/misc/torrent.nix | 8 ++++++-- users/nrd/default.nix | 2 ++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/profiles/misc/plex.nix b/profiles/misc/plex.nix index 4a9c5bed..3cfc9afb 100644 --- a/profiles/misc/plex.nix +++ b/profiles/misc/plex.nix @@ -3,6 +3,9 @@ services.plex = { enable = true; dataDir = "/srv/plex"; + group = "media"; openFirewall = true; }; + + users.groups.media.members = [ "plex" ]; } diff --git a/profiles/misc/torrent.nix b/profiles/misc/torrent.nix index 594adc66..8482dd83 100644 --- a/profiles/misc/torrent.nix +++ b/profiles/misc/torrent.nix @@ -5,9 +5,13 @@ let in { imports = [ ../../modules/services/torrent/qbittorrent.nix ]; - services.qbittorrent.enable = true; - users.users.nrd.extraGroups = [ "qbittorrent" ]; + services.qbittorrent = { + enable = true; + group = "media"; + }; + + users.groups.media.members = [ "qbittorrent" ]; environment.etc."xdg/qutebrowser/config.py".text = mkAfter '' c.url.searchengines['to'] = 'https://torrentz2.eu/search?f={}' diff --git a/users/nrd/default.nix b/users/nrd/default.nix index 48fc1b30..ce3c398d 100644 --- a/users/nrd/default.nix +++ b/users/nrd/default.nix @@ -167,6 +167,8 @@ in }; }; + users.groups.media.members = [ "nrd" ]; + users.users.nrd = { uid = 1000; description = name;