Merge pull request #226532 from SuperSandro2000/dhcpcd

dhcpcd: change files after patching; nixos/dhcpcd: link dhcpcd.conf to /etc/ to fix dhcpcd -k
This commit is contained in:
Peder Bergebakken Sundt 2024-01-31 16:43:54 +01:00 committed by GitHub
commit 9118823ed3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -219,6 +219,8 @@ in
'';
} ];
environment.etc."dhcpcd.conf".source = dhcpcdConf;
systemd.services.dhcpcd = let
cfgN = config.networking;
hasDefaultGatewaySet = (cfgN.defaultGateway != null && cfgN.defaultGateway.address != "")

View File

@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
runtimeShellPackage # So patchShebangs finds a bash suitable for the installed scripts
];
prePatch = ''
postPatch = ''
substituteInPlace hooks/dhcpcd-run-hooks.in --replace /bin/sh ${runtimeShell}
'';