summary refs log tree commit diff
path: root/nixos/tests/common
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-15 02:07:43 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-15 02:16:04 +0200
commita323d146b7be3bc066b4ec74db72888ea32792fb (patch)
treef05ed60f89df9d0546560c4aff93afa567122628 /nixos/tests/common
parent1a75958be52f5c2f062ace0935c1a2d43c8f7f55 (diff)
downloadnixpkgs-a323d146b7be3bc066b4ec74db72888ea32792fb.tar
nixpkgs-a323d146b7be3bc066b4ec74db72888ea32792fb.tar.gz
nixpkgs-a323d146b7be3bc066b4ec74db72888ea32792fb.tar.bz2
nixpkgs-a323d146b7be3bc066b4ec74db72888ea32792fb.tar.lz
nixpkgs-a323d146b7be3bc066b4ec74db72888ea32792fb.tar.xz
nixpkgs-a323d146b7be3bc066b4ec74db72888ea32792fb.tar.zst
nixpkgs-a323d146b7be3bc066b4ec74db72888ea32792fb.zip
Add user attribute isNormalUser
This is shorthand for setting group, createHome, home, useDefaultShell
and isSystemUser.
Diffstat (limited to 'nixos/tests/common')
-rw-r--r--nixos/tests/common/user-account.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/nixos/tests/common/user-account.nix b/nixos/tests/common/user-account.nix
index 0239a3c4d08..aa3a0b82bcd 100644
--- a/nixos/tests/common/user-account.nix
+++ b/nixos/tests/common/user-account.nix
@@ -1,11 +1,9 @@
 { pkgs, ... }:
 
 { users.extraUsers = pkgs.lib.singleton
-    { name = "alice";
+    { isNormalUser = true;
+      name = "alice";
       description = "Alice Foobar";
-      home = "/home/alice";
-      createHome = true;
-      useDefaultShell = true;
       password = "foobar";
       uid = 1000;
     };