From ac970a5e9cfe4527097a61ede5bc6d3c16963bb8 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Sat, 9 Nov 2024 12:56:03 -0800 Subject: Create tftp symlinks in /etc --- hosts/common/optional/services/dhcp.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'hosts/common/optional/services/dhcp.nix') diff --git a/hosts/common/optional/services/dhcp.nix b/hosts/common/optional/services/dhcp.nix index b5d7819..17e091f 100644 --- a/hosts/common/optional/services/dhcp.nix +++ b/hosts/common/optional/services/dhcp.nix @@ -1,9 +1,16 @@ { config, lib, pkgs, ... }: { - environment.systemPackages = with pkgs; [ - ipxe - ]; + environment = { + etc = { + "tftp/ipxe.efi".source = ${pkgs.ipxe}/ipxe.efi; + "tftp/undionly.kpxe".source = ${pkgs.ipxe}/undionly.kpxe; + }; + + systemPackages = with pkgs; [ + ipxe + ]; + }; services = { kea.dhcp4 = { -- cgit v1.2.3