From 604306c34a43d536ce7c51abcad1a73aa41ec2a1 Mon Sep 17 00:00:00 2001 From: Rickard Nilsson Date: Tue, 8 Apr 2014 12:33:30 +0200 Subject: [PATCH] Don't add users if createUser is false --- nixos/modules/config/users-groups.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/config/users-groups.nix b/nixos/modules/config/users-groups.nix index c5d44223ecf8..061f51ccda7b 100644 --- a/nixos/modules/config/users-groups.nix +++ b/nixos/modules/config/users-groups.nix @@ -7,7 +7,7 @@ let ids = config.ids; cfg = config.users; - nonUidUsers = filterAttrs (n: u: u.uid == null) cfg.extraUsers; + nonUidUsers = filterAttrs (n: u: u.createUser && u.uid == null) cfg.extraUsers; nonGidGroups = filterAttrs (n: g: g.gid == null) cfg.extraGroups; passwordDescription = ''