diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-15 01:33:20 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-08-15 02:15:29 +0200 |
commit | 1a75958be52f5c2f062ace0935c1a2d43c8f7f55 (patch) | |
tree | f08f0dee72758b493ee4ebed88259578b032d6e9 /nixos/modules/installer/tools/nixos-generate-config.pl | |
parent | df7bc53606bd7576232e2fe25e404789b5a2389a (diff) | |
download | nixpkgs-1a75958be52f5c2f062ace0935c1a2d43c8f7f55.tar nixpkgs-1a75958be52f5c2f062ace0935c1a2d43c8f7f55.tar.gz nixpkgs-1a75958be52f5c2f062ace0935c1a2d43c8f7f55.tar.bz2 nixpkgs-1a75958be52f5c2f062ace0935c1a2d43c8f7f55.tar.lz nixpkgs-1a75958be52f5c2f062ace0935c1a2d43c8f7f55.tar.xz nixpkgs-1a75958be52f5c2f062ace0935c1a2d43c8f7f55.tar.zst nixpkgs-1a75958be52f5c2f062ace0935c1a2d43c8f7f55.zip |
Unify mutableUsers = { true, false }
With mutableUsers = true, we now ensure that all users and groups that were created declaratively, are updated or removed appropriately. Thus, adding a user to users.extraUsers and then removing it now causes the acoount to be removed from /etc/passwd. Thus user/group management is fully congruent except that users and groups that were created imperatively (via useradd/groupadd) are not touched. We distinguish between declarative and imperative users/groups by tracking the former in /var/lib/nixos/declarative-{groups,users}. With mutableUsers = false, you are now no longer required to specify UIDs/GIDs for all users. The handling of mutableUsers = true/false is the same code path; the only difference is that the "false" mode ignores the existing contents of /etc/{passwd,group}. The attribute ‘createUser’ is gone. It doesn't really make sense to specify users that shouldn't be created.
Diffstat (limited to 'nixos/modules/installer/tools/nixos-generate-config.pl')
0 files changed, 0 insertions, 0 deletions