We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4040c57 commit fcb8a2bCopy full SHA for fcb8a2b
modules/programs/swaylock.nix
@@ -74,7 +74,12 @@ in
74
xdg.configFile."swaylock/config" = lib.mkIf (cfg.settings != { }) {
75
text = lib.concatStrings (
76
lib.mapAttrsToList (
77
- n: v: if v == false then "" else (if v == true then n else n + "=" + builtins.toString v) + "\n"
+ n: v:
78
+ if v == false then
79
+ ""
80
+ else
81
+ (if v == true then n else n + "=" + (if builtins.isPath v then "${v}" else builtins.toString v))
82
+ + "\n"
83
) cfg.settings
84
);
85
};
0 commit comments