1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/nixos/modules
nikstur 2710a49adb nixos/systemd-sysusers: stop creating users statically
On Linux we cannot feasbibly generate users statically because we need
to take care to not change or re-use UIDs over the lifetime of a machine
(i.e. over multiple generations). This means we need the context of the
running machine.

Thus, stop creating users statically and instead generate them at
runtime irrespective of mutableUsers.

When /etc is immutable, the password files (e.g. /etc/passwd etc.) are
created in a separate directory (/var/lib/nixos/etc). /etc will be
pre-populated with symlinks to this separate directory.

Immutable users are now implemented by bind-mounting the password files
read-only onto themselves and only briefly re-mounting them writable to
re-execute sysusers. The biggest limitation of this design is that you
now need to manually unmount this bind mount to change passwords because
sysusers cannot change passwords for you. This shouldn't be too much of
an issue because system users should only rarely need to change their
passwords.
2024-07-21 16:23:11 +02:00
..
config nixos/ldap: avoid top-level with expression (#327992) 2024-07-19 11:19:51 +02:00
hardware Merge pull request #325811 from Naxdy/work/blackmagic 2024-07-15 16:41:11 +02:00
i18n/input-method Merge pull request #310708 from importantblimp/180654 2024-07-14 00:02:13 +00:00
image nixos/repart-image: fix amend script 2024-07-10 11:40:40 +02:00
installer Merge pull request #320462 from amozeo/pkgs/nixos-rebuild/by-attr 2024-07-13 20:46:31 -04:00
misc nixos/mxisd: remove module 2024-07-12 11:44:59 +02:00
profiles Merge pull request #317623 from jmbaur/stc-ng-followup 2024-07-18 11:33:59 +02:00
programs Merge pull request #327748 from lluchs/fix-tsm-client-lists 2024-07-17 23:05:09 +02:00
security nixos/pam/u2f: implement RFC0042 2024-07-05 17:07:02 +03:00
services Merge pull request #327939 from Guanran928/libreddit 2024-07-19 13:47:14 +02:00
system nixos/systemd-sysusers: stop creating users statically 2024-07-21 16:23:11 +02:00
tasks nixos/clevis: add support for parent encrypted zfs datasets 2024-06-12 21:21:50 +03:00
testing treewide: fix mkEnableOption usage 2024-06-14 02:41:42 -04:00
virtualisation Merge pull request #290730 from nikstur/qemu-vm-refactoring 2024-07-18 19:34:51 +02:00
module-list.nix Merge pull request #327939 from Guanran928/libreddit 2024-07-19 13:47:14 +02:00
rename.nix Merge pull request #326894 from kira-bruneau/replay-sorcery 2024-07-17 14:37:51 -04:00