Add netboot target

This commit is contained in:
Charlotte 🦝 Delenk 2023-03-18 10:11:05 +01:00
parent d885b72016
commit 28421958de
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
3 changed files with 28 additions and 9 deletions

View file

@ -10,14 +10,8 @@
networking.wireguard.interfaces."wg0".ips = [
"fd0d:a262:1fa6:e621:6ec2:1e4e:ce7f:d2af/64"
];
boot.supportedFilesystems = ["zfs"];
boot.supportedFilesystems = lib.mkForce ["bcachefs" "vfat"];
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_testing_bcachefs;
networking.hostId = "8425e349";
# Oldest system I have is skylake-based
/*
nixpkgs.localSystem = {
gcc.arch = "skylake";
gcc.tune = "skylake";
system = "x86_64-linux";
};
*/
nix.settings.post-build-hook = lib.mkForce "true";
}

17
config/netboot.nix Normal file
View file

@ -0,0 +1,17 @@
{
lib,
pkgs,
nixpkgs,
...
}: {
imports = [
"${nixpkgs}/nixos/modules/installer/netboot/netboot-minimal.nix"
];
networking.wireguard.interfaces."wg0".ips = [
"fd0d:a262:1fa6:e621:6ec2:1e4e:ce7f:d2af/64"
];
boot.supportedFilesystems = lib.mkForce ["bcachefs" "vfat"];
boot.kernelPackages = lib.mkForce pkgs.linuxPackages_testing_bcachefs;
networking.hostId = "8425e349";
nix.settings.post-build-hook = lib.mkForce "true";
}

View file

@ -115,6 +115,14 @@ rec {
name = "nas"; # My nas
system = "x86_64-linux";
}
{
name = "installer"; # Installer iso
system = "x86_64-linux";
}
{
name = "netboot"; # Installer netboot
system = "x86_64-linux";
}
{
name = "instance-20221213-1915"; # Oracle server
system = "aarch64-linux";