diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-15 02:07:43 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-15 02:16:04 +0200 |
commit | a323d146b7be3bc066b4ec74db72888ea32792fb (patch) | |
tree | f05ed60f89df9d0546560c4aff93afa567122628 /nixos/tests | |
parent | 1a75958be52f5c2f062ace0935c1a2d43c8f7f55 (diff) |
Add user attribute isNormalUser
This is shorthand for setting group, createHome, home, useDefaultShell and isSystemUser.
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/common/user-account.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/nixos/tests/common/user-account.nix b/nixos/tests/common/user-account.nix index 0239a3c4d08a0..aa3a0b82bcde1 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; }; |