From 491c4bf6b4596b486b12724e9124a854cc7abc26 Mon Sep 17 00:00:00 2001 From: "quentin@aristote.fr" Date: Sun, 29 Sep 2024 19:56:08 +0200 Subject: migrate hostapd config --- config/networking/services/ifplugd.nix | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'config/networking/services/ifplugd.nix') diff --git a/config/networking/services/ifplugd.nix b/config/networking/services/ifplugd.nix index 4933b97..b904e90 100644 --- a/config/networking/services/ifplugd.nix +++ b/config/networking/services/ifplugd.nix @@ -1,12 +1,8 @@ -{ - config, - pkgs, - ... -}: let - iface = config.personal.networking.networks.eth0.device; +{pkgs, ...}: let + iface = "enp3s0"; dhcpService = "kea-dhcp4-server.service"; action = pkgs.writeShellApplication { - name = "ifplugd-enp3s0.action"; + name = "ifplugd-${iface}.action"; runtimeInputs = [pkgs.systemd]; text = '' INTERFACE="$1" @@ -30,7 +26,7 @@ in { script = '' # iface no-daemon no-auto no-shutdown delay-up run ifplugd -i ${iface} -n -a -q -u 5 -r \ - ${action}/bin/ifplugd-enp3s0.action + ${action}/bin/ifplugd-${iface}.action ''; path = [pkgs.busybox]; }; -- cgit v1.2.3