create media group

This commit is contained in:
Timothy DeHerrera 2019-12-19 13:03:15 -07:00
parent 3038c1db41
commit e35652cac0
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122
3 changed files with 11 additions and 2 deletions

View File

@ -3,6 +3,9 @@
services.plex = { services.plex = {
enable = true; enable = true;
dataDir = "/srv/plex"; dataDir = "/srv/plex";
group = "media";
openFirewall = true; openFirewall = true;
}; };
users.groups.media.members = [ "plex" ];
} }

View File

@ -5,9 +5,13 @@ let
in in
{ {
imports = [ ../../modules/services/torrent/qbittorrent.nix ]; 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 '' environment.etc."xdg/qutebrowser/config.py".text = mkAfter ''
c.url.searchengines['to'] = 'https://torrentz2.eu/search?f={}' c.url.searchengines['to'] = 'https://torrentz2.eu/search?f={}'

View File

@ -167,6 +167,8 @@ in
}; };
}; };
users.groups.media.members = [ "nrd" ];
users.users.nrd = { users.users.nrd = {
uid = 1000; uid = 1000;
description = name; description = name;