try to change unbound uid gid
This commit is contained in:
@@ -17,7 +17,6 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
security.acme.certs."${domain}" = {
|
security.acme.certs."${domain}" = {
|
||||||
domain = "${domain}";
|
|
||||||
group = "nginx";
|
group = "nginx";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -130,9 +130,18 @@ let
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
users.users.unbound = {
|
||||||
|
group = "unbound";
|
||||||
|
isSystemUser = true;
|
||||||
|
uid = config.ids.uids.unbound;
|
||||||
|
};
|
||||||
|
users.groups.unbound = {
|
||||||
|
gid = config.ids.gids.unbound;
|
||||||
|
}
|
||||||
|
|
||||||
security.acme.certs."${domain}" = {
|
security.acme.certs."${domain}" = {
|
||||||
domain = "${domain}";
|
domain = "${domain}";
|
||||||
group = "996";
|
group = "unbound";
|
||||||
};
|
};
|
||||||
|
|
||||||
containers.unbound = {
|
containers.unbound = {
|
||||||
@@ -164,6 +173,14 @@ in {
|
|||||||
allowedTCPPorts = [ 853 ];
|
allowedTCPPorts = [ 853 ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
users.users.unbound = {
|
||||||
|
group = "unbound";
|
||||||
|
isSystemUser = true;
|
||||||
|
uid = config.ids.uids.unbound;
|
||||||
|
};
|
||||||
|
users.groups.unbound = {
|
||||||
|
gid = config.ids.gids.unbound;
|
||||||
|
}
|
||||||
services.unbound = {
|
services.unbound = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = cfg;
|
settings = cfg;
|
||||||
|
|||||||
Reference in New Issue
Block a user