ctucx.git: nixfiles

ctucx' nixfiles

commit 9178f4a26985fbca1ec68f5a4a07a8f01897a4fe
parent df37ed91839b99d81d40b07f3f8ee1b93e9a1597
Author: Leah (ctucx) <git@ctu.cx>
Date: Thu, 21 Dec 2023 15:17:39 +0100

modules/darwin/skhd: fix lounchd-service
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/darwin/skhd.nix b/modules/darwin/skhd.nix
@@ -37,8 +37,8 @@ in
 
       serviceConfig.ProgramArguments = [
         "/bin/sh" "-c"
-        "/bin/wait4path /nix/store &amp;&amp; exec ${cfg.package}/bin/skhd"
-      ] ++ optionals (cfg.skhdConfig != "") [ "-c" "/etc/skhdrc" ];
+        "/bin/wait4path /nix/store &amp;&amp; exec ${cfg.package}/bin/skhd ${optionalString (cfg.skhdConfig != "") "-c /etc/skhdrc"}"
+      ];
       serviceConfig.KeepAlive = true;
       serviceConfig.ProcessType = "Interactive";
     };