From 84f908ad2eed413c5efea18891ce948ca27d25fd Mon Sep 17 00:00:00 2001 From: h7x4 Date: Wed, 15 Oct 2025 22:49:03 +0900 Subject: [PATCH] nixos/thelounge: replace `preStart` with `ExecStartPre` --- nixos/modules/services/networking/thelounge.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/networking/thelounge.nix b/nixos/modules/services/networking/thelounge.nix index a8104c2e1b88..4a3ef4d1c426 100644 --- a/nixos/modules/services/networking/thelounge.nix +++ b/nixos/modules/services/networking/thelounge.nix @@ -112,11 +112,11 @@ in systemd.services.thelounge = { description = "The Lounge web IRC client"; wantedBy = [ "multi-user.target" ]; - preStart = "ln -sf ${pkgs.writeText "config.js" configJsData} ${dataDir}/config.js"; environment.THELOUNGE_PACKAGES = mkIf (cfg.plugins != [ ]) "${plugins}"; serviceConfig = { User = "thelounge"; StateDirectory = baseNameOf dataDir; + ExecStartPre = "${lib.getExe' pkgs.coreutils "ln"} -sf ${pkgs.writeText "config.js" configJsData} ${dataDir}/config.js"; ExecStart = "${getExe cfg.package} start"; }; };