diff --git a/nixos/modules/security/wrappers/default.nix b/nixos/modules/security/wrappers/default.nix index 3f861ef7a257..cc1810c534bc 100644 --- a/nixos/modules/security/wrappers/default.nix +++ b/nixos/modules/security/wrappers/default.nix @@ -318,6 +318,7 @@ in "/nix/store" "/run/wrappers" ]; + serviceConfig.RestrictSUIDSGID = false; serviceConfig.Type = "oneshot"; script = '' chmod 755 "${parentWrapperDir}" diff --git a/nixos/modules/system/boot/systemd/tmpfiles.nix b/nixos/modules/system/boot/systemd/tmpfiles.nix index 21d14fe22cb9..12eca48f945d 100644 --- a/nixos/modules/system/boot/systemd/tmpfiles.nix +++ b/nixos/modules/system/boot/systemd/tmpfiles.nix @@ -280,6 +280,7 @@ in "network.hosts" "ssh.authorized_keys.root" ]; + RestrictSUIDSGID = false; }; };