group things

This commit is contained in:
2025-07-21 14:22:48 +02:00
parent 8c2c1c9ada
commit 4147772de4
4 changed files with 10 additions and 14 deletions

View File

@@ -29,6 +29,7 @@
network = { network = {
enable = true; enable = true;
extraHosts = '' extraHosts = ''
192.168.88.14 sobotka
192.168.88.14 cnst.dev 192.168.88.14 cnst.dev
192.168.88.14 lidarr.cnst.dev 192.168.88.14 lidarr.cnst.dev
192.168.88.14 prowlarr.cnst.dev 192.168.88.14 prowlarr.cnst.dev

View File

@@ -70,5 +70,6 @@ in {
group = cfg.group; group = cfg.group;
}; };
}; };
users.groups.media.gid = 777;
}; };
} }

View File

@@ -46,5 +46,10 @@ in {
reverse_proxy http://127.0.0.1:8686 reverse_proxy http://127.0.0.1:8686
''; '';
}; };
users.users.lidarr = {
group = "lidarr";
extraGroups = ["media"];
isSystemUser = true;
};
}; };
} }

View File

@@ -68,9 +68,8 @@ in {
"--network=container:gluetun" "--network=container:gluetun"
]; ];
volumes = [ volumes = [
"config:/storage/volumes/config" "/var/lib/qbittorrent:/config"
"config:/storage/volumes/downloads" "/shared/downloads:/downloads"
# "/var/lib/qbittorrent:/config"
]; ];
environmentFiles = [ environmentFiles = [
config.age.secrets.gluetunEnv.path config.age.secrets.gluetunEnv.path
@@ -108,21 +107,11 @@ in {
}; };
}; };
# environment.persistence."/persist/backup" = {
# directories = [
# {
# directory = "/var/lib/qbittorrent";
# user = "qbittorrent";
# group = "qbittorrent";
# mode = "0750";
# }
# ];
# };
users = { users = {
users.qbittorrent = { users.qbittorrent = {
uid = cfg.uid; uid = cfg.uid;
group = "qbittorrent"; group = "qbittorrent";
extraGroups = ["media"];
isSystemUser = true; isSystemUser = true;
}; };
groups.qbittorrent = { groups.qbittorrent = {