From fda8060dbe7a670c94d9d2ab9b2a3bc12759cc93 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Sat, 18 Jan 2020 14:15:59 -0500 Subject: nixos config --- config/ap.nix | 1 + config/pxe.nix | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 config/pxe.nix (limited to 'config') diff --git a/config/ap.nix b/config/ap.nix index 2e17a1e..9bc2ef6 100644 --- a/config/ap.nix +++ b/config/ap.nix @@ -114,6 +114,7 @@ in enable = true; servers = [ "8.8.8.8" "8.8.4.4" ]; extraConfig = '' + dhcp-authoritative dhcp-range=10.64.30.100,10.64.30.255,255.255.255.0,24h dhcp-option=option:router,10.64.30.1 dhcp-option=option:dns-server,10.64.30.1 diff --git a/config/pxe.nix b/config/pxe.nix new file mode 100644 index 0000000..fcf839e --- /dev/null +++ b/config/pxe.nix @@ -0,0 +1,12 @@ +{ config, lib, pkgs, ... }: +{ + services.dnsmasq = { + extraConfig = '' + enable-tftp + tftp-root=${pkgs.ipxe} + dhcp-userclass=set:ipxe,iPXE + dhcp-boot=tag:!ipxe,undionly.kpxe + dhcp-boot=http://boot.ipxe.org/demo/boot.php + ''; + }; +} -- cgit v1.2.3