user and group fixings 0.1
This commit is contained in:
@@ -17,6 +17,16 @@ in {
|
|||||||
default = 8080;
|
default = 8080;
|
||||||
description = "The port to host qBittorrent on.";
|
description = "The port to host qBittorrent on.";
|
||||||
};
|
};
|
||||||
|
uid = lib.mkOption {
|
||||||
|
type = lib.types.int;
|
||||||
|
default = 899;
|
||||||
|
description = "The uid of qBittorrent.";
|
||||||
|
};
|
||||||
|
gid = lib.mkOption {
|
||||||
|
type = lib.types.int;
|
||||||
|
default = 898;
|
||||||
|
description = "The gid qBittorrent.";
|
||||||
|
};
|
||||||
homepage.name = lib.mkOption {
|
homepage.name = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "qBittorrent";
|
default = "qBittorrent";
|
||||||
@@ -98,12 +108,12 @@ in {
|
|||||||
};
|
};
|
||||||
users = {
|
users = {
|
||||||
users.qbittorrent = {
|
users.qbittorrent = {
|
||||||
uid = srv.uid;
|
uid = cfg.uid;
|
||||||
group = "qbittorrent";
|
group = "qbittorrent";
|
||||||
isSystemUser = true;
|
isSystemUser = true;
|
||||||
};
|
};
|
||||||
groups.qbittorrent = {
|
groups.qbittorrent = {
|
||||||
gid = srv.gid;
|
gid = cfg.gid;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user