Skip to content

Commit fcb8a2b

Browse files
authored
swaylock: fix path values in config file (#6786)
1 parent 4040c57 commit fcb8a2b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/programs/swaylock.nix

+6-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,12 @@ in
7474
xdg.configFile."swaylock/config" = lib.mkIf (cfg.settings != { }) {
7575
text = lib.concatStrings (
7676
lib.mapAttrsToList (
77-
n: v: if v == false then "" else (if v == true then n else n + "=" + builtins.toString v) + "\n"
77+
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"
7883
) cfg.settings
7984
);
8085
};

0 commit comments

Comments
 (0)