summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Hoang <enzime@users.noreply.github.com>2024-10-24 23:19:27 +1100
committerMichael Hoang <enzime@users.noreply.github.com>2024-10-27 21:26:19 +1100
commitbd161d61d6f322e1c16543b67b1dbd13934e763c (patch)
tree352fe7e8263a4ebc9b258f39d6628c302ee8bab4 /tests
parentc9af5c2d1394d1bc34f4722998bcd51714ccd68c (diff)
users: allow `home` to be managed by macOS
Diffstat (limited to 'tests')
-rw-r--r--tests/users-groups.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/users-groups.nix b/tests/users-groups.nix
index d06eedd..8fc435a 100644
--- a/tests/users-groups.nix
+++ b/tests/users-groups.nix
@@ -20,6 +20,7 @@
users.users."created.user".uid = 42001;
users.users."created.user".description = null;
+ users.users."created.user".home = null;
users.users."unknown.user".uid = 42002;
@@ -49,6 +50,7 @@
grep "sysadminctl -addUser ${lib.escapeShellArgs [ "foo" "-UID" 42000 "-GID" 42000 "-fullName" "Foo user" "-home" "/Users/foo" "-shell" "/run/current-system/sw/bin/bash" ]}" ${config.out}/activate
grep "createhomedir -cu ${lib.escapeShellArg "foo"}" ${config.out}/activate
grep "sysadminctl -addUser ${lib.escapeShellArgs [ "created.user" "-UID" 42001 ]} .* ${lib.escapeShellArgs [ "-shell" "/sbin/nologin" ]}" ${config.out}/activate
+ (! grep "sysadminctl -addUser ${lib.escapeShellArg "created.user"} .* -home" ${config.out}/activate)
(! grep "deleteUser ${lib.escapeShellArg "created.user"}" ${config.out}/activate)
(! grep "dscl . -delete ${lib.escapeShellArg "/Groups/created.user"}" ${config.out}/activate)