summary refs log tree commit diff
path: root/nixos/tests/unbound.nix
diff options
context:
space:
mode:
authorGuillaume Girol <symphorien+git@xlumurb.eu>2021-08-08 12:00:00 +0000
committerGuillaume Girol <symphorien+git@xlumurb.eu>2021-09-12 14:59:30 +0200
commitbc3bca822a32fbbc73a9d55394991cef92dba3b9 (patch)
tree04d54d294f1869dd6f874e92eb5f2c094eef3b7f /nixos/tests/unbound.nix
parent0f15a8f489b04a7d0086edf27920ba15fa1de0d3 (diff)
downloadnixpkgs-bc3bca822a32fbbc73a9d55394991cef92dba3b9.tar
nixpkgs-bc3bca822a32fbbc73a9d55394991cef92dba3b9.tar.gz
nixpkgs-bc3bca822a32fbbc73a9d55394991cef92dba3b9.tar.bz2
nixpkgs-bc3bca822a32fbbc73a9d55394991cef92dba3b9.tar.lz
nixpkgs-bc3bca822a32fbbc73a9d55394991cef92dba3b9.tar.xz
nixpkgs-bc3bca822a32fbbc73a9d55394991cef92dba3b9.tar.zst
nixpkgs-bc3bca822a32fbbc73a9d55394991cef92dba3b9.zip
nixos: define the primary group of users where needed
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 58a717f98a1..576287a9fe5 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