From 72934892883ee5a37643f8ea02838fdd61fe4153 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Thu, 29 Jul 2021 14:55:57 +0200 Subject: nixos/systemd: provision a systemd-coredump user systemd-coredump tries to drop privileges to a systemd-coredump user if present (and falls back to the root user if it's not available). Create that user, and recycle uid 151 for it. We don't really care about the gid. Fixes https://github.com/NixOS/nixpkgs/issues/120803. --- nixos/modules/system/boot/systemd.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'nixos/modules/system/boot/systemd.nix') diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 58064e5de86..b8dab27a393 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -1053,6 +1053,7 @@ in services.dbus.enable = true; + users.users.systemd-coredump.uid = config.ids.uids.systemd-coredump; users.users.systemd-network.uid = config.ids.uids.systemd-network; users.groups.systemd-network.gid = config.ids.gids.systemd-network; users.users.systemd-resolve.uid = config.ids.uids.systemd-resolve; -- cgit 1.4.1