From 4346b3bf8498de5a5105b81ff926aa4fb618559b Mon Sep 17 00:00:00 2001 From: nikstur Date: Sun, 8 Feb 2026 16:26:05 +0100 Subject: [PATCH] systemd: add patch policy --- pkgs/os-specific/linux/systemd/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index 0b221cac145a..1fda3dbd6d85 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -215,6 +215,19 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-FUKj3lvjz8TIsyu8NyJYtiNele+1BhdJPdw7r7nW6as="; }; + # PATCH POLICY + # + # There are only two reasons we accept patches on systemd: + # 1. systemd functionality is fundamentally incompatible with how NixOS works + # and workarounds are not possible. + # 2. Hotfixes that we want to apply before they have reached a systemd branch + # we can use. If we come up with the fixes in Nixpkgs, they need to be + # reported upstream and the upstream issue needs to be linked in the + # commit message of the patch. + # + # Importantly, patches to improve usability, enable new features on NixOS or + # add entirely new features to systemd are not allowed. + # On major changes, or when otherwise required, you *must* : # 1. reformat the patches, # 2. `git am path/to/00*.patch` them into a systemd worktree,