Add netboot target
This commit is contained in:
parent
d885b72016
commit
28421958de
3 changed files with 28 additions and 9 deletions
|
@ -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
17
config/netboot.nix
Normal 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";
|
||||
}
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue