From fcb8a2b62b30ae054a4eadbf43c913a755f1d14c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=A9tan=20Lepage?= <33058747+GaetanLepage@users.noreply.github.com> Date: Wed, 9 Apr 2025 15:22:57 +0200 Subject: [PATCH] swaylock: fix path values in config file (#6786) --- modules/programs/swaylock.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/programs/swaylock.nix b/modules/programs/swaylock.nix index c6979a3b..340663a6 100644 --- a/modules/programs/swaylock.nix +++ b/modules/programs/swaylock.nix @@ -74,7 +74,12 @@ in xdg.configFile."swaylock/config" = lib.mkIf (cfg.settings != { }) { text = lib.concatStrings ( lib.mapAttrsToList ( - n: v: if v == false then "" else (if v == true then n else n + "=" + builtins.toString v) + "\n" + n: v: + if v == false then + "" + else + (if v == true then n else n + "=" + (if builtins.isPath v then "${v}" else builtins.toString v)) + + "\n" ) cfg.settings ); };