summaryrefslogtreecommitdiffstats
path: root/nixos/tests/unbound.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/unbound.nix')
-rw-r--r--nixos/tests/unbound.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/nixos/tests/unbound.nix b/nixos/tests/unbound.nix
index 58a717f98a16..576287a9fe5d 100644
--- a/nixos/tests/unbound.nix
+++ b/nixos/tests/unbound.nix
@@ -145,13 +145,22 @@ import ./make-test-python.nix ({ pkgs, lib, ... }:
# user that is permitted to access the unix socket
someuser = {
isSystemUser = true;
+ group = "someuser";
extraGroups = [
config.users.users.unbound.group
];
};
# user that is not permitted to access the unix socket
- unauthorizeduser = { isSystemUser = true; };
+ unauthorizeduser = {
+ isSystemUser = true;
+ group = "unauthorizeduser";
+ };
+
+ };
+ users.groups = {
+ someuser = {};
+ unauthorizeduser = {};
};
# Used for testing configuration reloading