diff --git a/modules/services/screen-locker.nix b/modules/services/screen-locker.nix index 844075eee..e3da14069 100644 --- a/modules/services/screen-locker.nix +++ b/modules/services/screen-locker.nix @@ -58,13 +58,12 @@ in { }; Service = { - ExecStart = '' - ${pkgs.xautolock}/bin/xautolock \ - -detectsleep \ - -time ${toString cfg.inactiveInterval} \ - -locker '${pkgs.systemd}/bin/loginctl lock-session $XDG_SESSION_ID' \ - ${concatStringsSep " " cfg.xautolockExtraOptions} - ''; + ExecStart = concatStringsSep " " ([ + "${pkgs.xautolock}/bin/xautolock" + "-detectsleep" + "-time ${toString cfg.inactiveInterval}" + "-locker '${pkgs.systemd}/bin/loginctl lock-session $XDG_SESSION_ID'" + ] ++ cfg.xautolockExtraOptions); }; };