nixpkgs/nixos/modules/config
Bjørn Forsman fa8ace3618 nixos: don't implicitly map missing user groups to nogroup
Before: `users.users.user1.group = "group-not-defined-anywhere-else"`
would result in user1 having the primary group `nogroup`, assigned at
activation time and only with a (easy to miss) warning from the
activation script. This behaviour is a security issue becase no files
should be owned by `nogroup` and it allows for unrelated users (and
services) to accidentally have access to files they shouldn't have.

After: The configuration above results in this eval error:
  - The following users have a primary group that is undefined: user1
  Hint: Add this to your NixOS config:
    users.groups.group-not-defined-anywhere-else = {};
2023-10-06 19:33:01 +02:00
..
fonts noto-fonts-emoji → noto-fonts-color-emoji 2023-09-12 12:38:07 +00:00
gtk
krb5
xdg
appstream.nix
console.nix nixos/console: use systemd-vconsole-setup.service from upstream for sd initrd 2023-09-13 12:02:40 +02:00
debug-info.nix
gnu.nix
i18n.nix
iproute2.nix
ldap.nix
locale.nix
malloc.nix Revert "nixos/malloc: add back maybe unnecessary line" 2023-08-10 03:02:39 +02:00
mysql.nix
networking.nix
nix-channel.nix
nix-flakes.nix
nix-remote-build.nix
nix.nix
no-x-libs.nix nixos/no-x-libs: use pythonPackagesExtensions to construct python overlay 2023-08-01 15:36:15 +02:00
nsswitch.nix
power-management.nix
pulseaudio.nix
qt.nix
resolvconf.nix
shells-environment.nix
stevenblack.nix
swap.nix
sysctl.nix
system-environment.nix
system-path.nix nixos/nano: add enable, package option, do not create /etc/nanorc by default 2023-09-29 00:24:34 +02:00
terminfo.nix nixos/{sudo, terminfo}: Adjust defaults for compatibility with sudo-rs 2023-09-18 17:36:15 +00:00
unix-odbc-drivers.nix
update-users-groups.pl nixos/user-groups: fixup of 5666a378 2023-09-13 11:44:19 +02:00
users-groups.nix nixos: don't implicitly map missing user groups to nogroup 2023-10-06 19:33:01 +02:00
vte.nix
zram.nix nixos/zram: use nixos/zram-generator as backing implementation 2023-08-13 15:38:40 +08:00