From d47e4024287a732ced62e64bcd75f4d2455e5441 Mon Sep 17 00:00:00 2001 From: Nicolas Dumazet Date: Tue, 31 Mar 2026 21:52:47 +0200 Subject: [PATCH] nixos/sddm: fix unit: add RequiresMountsFor for state directory This helps correctness for systems which need to mount particular directories (impermanence, preservation). This option has no effect if the system does not need to mount directories / if no mountpoints exist for this directory or its parents. Signed-off-by: Nicolas Dumazet --- nixos/modules/services/display-managers/sddm.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/modules/services/display-managers/sddm.nix b/nixos/modules/services/display-managers/sddm.nix index b960c7e63d8d..ec6397179acc 100644 --- a/nixos/modules/services/display-managers/sddm.nix +++ b/nixos/modules/services/display-managers/sddm.nix @@ -439,6 +439,10 @@ in "plymouth-quit.service" "systemd-logind.service" ]; + # sddm stores state in this directory, which should be mounted. + unitConfig.RequiresMountsFor = [ + config.users.users.sddm.home + ]; }; }; };