From abd94905b5a26111f13c1ee46483ee02218769b1 Mon Sep 17 00:00:00 2001 From: Jonathan Troyer <15098499+JonathanTroyer@users.noreply.github.com> Date: Wed, 18 Mar 2026 10:28:56 -0500 Subject: [PATCH] nixos/regreet: fix extraCss store paths written as literal text lib.isPath only matches Nix path literals, not strings containing store paths. When extraCss is set to a derivation's outPath (a string like "/nix/store/..."), the condition falls through to the `text` branch, writing the store path as literal CSS content instead of using it as a file source. Add lib.isStorePath to the condition so string store paths are correctly handled via `source`. Ref: https://github.com/nix-community/stylix/issues/2190 --- nixos/modules/programs/regreet.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/modules/programs/regreet.nix b/nixos/modules/programs/regreet.nix index 151ad3a623ca..800642e2087a 100644 --- a/nixos/modules/programs/regreet.nix +++ b/nixos/modules/programs/regreet.nix @@ -159,7 +159,10 @@ in environment.etc = { "greetd/regreet.css" = - if lib.isPath cfg.extraCss then { source = cfg.extraCss; } else { text = cfg.extraCss; }; + if lib.isPath cfg.extraCss || lib.isStorePath cfg.extraCss then + { source = cfg.extraCss; } + else + { text = cfg.extraCss; }; "greetd/regreet.toml".source = if lib.isPath cfg.settings then