From 962acece38e6d8d1fb8d48ce214a7cee70e49fe0 Mon Sep 17 00:00:00 2001 From: clerie Date: Mon, 9 Dec 2024 18:34:32 +0100 Subject: [PATCH] hosts/carbon: Fix broken per start script generation --- hosts/carbon/ppp.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hosts/carbon/ppp.nix b/hosts/carbon/ppp.nix index 784c1de..200b161 100644 --- a/hosts/carbon/ppp.nix +++ b/hosts/carbon/ppp.nix @@ -1,4 +1,4 @@ -{ config, pkgs, utils, ... }: +{ config, pkgs, lib, ... }: { @@ -44,12 +44,15 @@ cat ${config.sops.secrets.pppd-dtagdsl-secrets.path} > /etc/ppp/chap-secrets ''; - preStartFile = utils.systemdUtils.lib.makeJobScript "pppd-dtagdsl-pre-start" preStart; + preStartFile = pkgs.writeShellApplication { + name = "pppd-dtagdsl-pre-start"; + text = preStart; + }; in { EnvironmentFile = config.sops.secrets.pppd-dtagdsl-username.path; ExecStartPre = [ # "+" marks script to be executed without priviledge restrictions - "+${preStartFile}" + "+${lib.getExe preStartFile}" ]; };