From f5483464d5726d05b6169017e6b0f64ebccc2f53 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Thu, 23 Feb 2023 09:32:19 +0800 Subject: [PATCH] nixos/systemd-coredump: guard static gid for systemd-coredump behind state version --- nixos/modules/system/boot/systemd/coredump.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/systemd/coredump.nix b/nixos/modules/system/boot/systemd/coredump.nix index 2dbc95e38ee3..deaaba9bbf85 100644 --- a/nixos/modules/system/boot/systemd/coredump.nix +++ b/nixos/modules/system/boot/systemd/coredump.nix @@ -67,7 +67,7 @@ in { group = "systemd-coredump"; }; users.groups.systemd-coredump = { - gid = config.ids.gids.systemd-coredump; + gid = mkIf (lib.versionAtLeast config.system.stateVersion "23.05") config.ids.gids.systemd-coredump; }; })