user and group fixings

This commit is contained in:
2025-07-21 12:06:43 +02:00
parent 465edc9b59
commit ee097a7d7c
3 changed files with 15 additions and 5 deletions

View File

@@ -39,8 +39,6 @@ in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.${unit} = { services.${unit} = {
enable = true; enable = true;
user = srv.user;
group = srv.group;
}; };
services.caddy.virtualHosts."${cfg.url}" = { services.caddy.virtualHosts."${cfg.url}" = {
useACMEHost = srv.domain; useACMEHost = srv.domain;

View File

@@ -39,8 +39,6 @@ in {
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services.${unit} = { services.${unit} = {
enable = true; enable = true;
# user = srv.user;
# group = srv.group;
}; };
services.caddy.virtualHosts."${cfg.url}" = { services.caddy.virtualHosts."${cfg.url}" = {
useACMEHost = srv.domain; useACMEHost = srv.domain;
@@ -48,5 +46,10 @@ in {
reverse_proxy http://127.0.0.1:9696 reverse_proxy http://127.0.0.1:9696
''; '';
}; };
users.users.prowlarr = {
group = "prowlarr";
isSystemUser = true;
};
users.groups.prowlarr = {};
}; };
} }

View File

@@ -47,7 +47,6 @@ in {
virtualisation.oci-containers.containers = { virtualisation.oci-containers.containers = {
qbittorrent = { qbittorrent = {
user = "${srv.user}:${srv.group};";
image = "linuxserver/qbittorrent:latest"; image = "linuxserver/qbittorrent:latest";
autoStart = true; autoStart = true;
dependsOn = ["gluetun"]; dependsOn = ["gluetun"];
@@ -97,5 +96,15 @@ in {
}; };
}; };
}; };
users = {
users.qbittorrent = {
uid = srv.uid;
group = "qbittorrent";
isSystemUser = true;
};
groups.qbittorrent = {
gid = srv.gid;
};
};
}; };
} }