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 ); };