nixos/dhcpcd: always run systemctl of the currently running systemd
This commit is contained in:
parent
73392b748f
commit
b0222a5e9c
@ -81,7 +81,7 @@ let
|
|||||||
# anything ever again ("couldn't resolve ..., giving up on
|
# anything ever again ("couldn't resolve ..., giving up on
|
||||||
# it"), so we silently lose time synchronisation. This also
|
# it"), so we silently lose time synchronisation. This also
|
||||||
# applies to openntpd.
|
# applies to openntpd.
|
||||||
${config.systemd.package}/bin/systemctl try-reload-or-restart ntpd.service openntpd.service chronyd.service || true
|
/run/current-system/systemd/bin/systemctl try-reload-or-restart ntpd.service openntpd.service chronyd.service || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${cfg.runHook}
|
${cfg.runHook}
|
||||||
@ -217,7 +217,7 @@ in
|
|||||||
powerManagement.resumeCommands = mkIf config.systemd.services.dhcpcd.enable
|
powerManagement.resumeCommands = mkIf config.systemd.services.dhcpcd.enable
|
||||||
''
|
''
|
||||||
# Tell dhcpcd to rebind its interfaces if it's running.
|
# Tell dhcpcd to rebind its interfaces if it's running.
|
||||||
${config.systemd.package}/bin/systemctl reload dhcpcd.service
|
/run/current-system/systemd/bin/systemctl reload dhcpcd.service
|
||||||
'';
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user