try to change unbound uid gid

This commit is contained in:
2023-12-05 10:51:35 +01:00
parent 10460ca8b2
commit 4509664a10
2 changed files with 18 additions and 2 deletions

View File

@@ -17,7 +17,6 @@ in
};
security.acme.certs."${domain}" = {
domain = "${domain}";
group = "nginx";
};

View File

@@ -130,9 +130,18 @@ let
];
};
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}" = {
domain = "${domain}";
group = "996";
group = "unbound";
};
containers.unbound = {
@@ -164,6 +173,14 @@ in {
allowedTCPPorts = [ 853 ];
};
};
users.users.unbound = {
group = "unbound";
isSystemUser = true;
uid = config.ids.uids.unbound;
};
users.groups.unbound = {
gid = config.ids.gids.unbound;
}
services.unbound = {
enable = true;
settings = cfg;