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}" ]; };