aboutsummaryrefslogtreecommitdiffstats
path: root/hosts/common
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-11-09 12:56:03 -0800
committerMark Nipper <nipsy@bitgnome.net>2024-11-09 12:56:03 -0800
commitac970a5e9cfe4527097a61ede5bc6d3c16963bb8 (patch)
treeb17601f03f713cff014bde9b48de668c58cfb381 /hosts/common
parentfb57a0ecd1776724557eb406105b2bce00090c93 (diff)
downloadnix-ac970a5e9cfe4527097a61ede5bc6d3c16963bb8.tar
nix-ac970a5e9cfe4527097a61ede5bc6d3c16963bb8.tar.gz
nix-ac970a5e9cfe4527097a61ede5bc6d3c16963bb8.tar.bz2
nix-ac970a5e9cfe4527097a61ede5bc6d3c16963bb8.tar.lz
nix-ac970a5e9cfe4527097a61ede5bc6d3c16963bb8.tar.xz
nix-ac970a5e9cfe4527097a61ede5bc6d3c16963bb8.tar.zst
nix-ac970a5e9cfe4527097a61ede5bc6d3c16963bb8.zip
Create tftp symlinks in /etc
Diffstat (limited to 'hosts/common')
-rw-r--r--hosts/common/optional/services/dhcp.nix13
1 files changed, 10 insertions, 3 deletions
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 = {