hosts: move bootloader config to default.nix files

This commit is contained in:
2025-09-29 20:33:58 -07:00
parent fb4d2aaf4c
commit 349f5c1ded
26 changed files with 38 additions and 34 deletions

View File

@@ -1,3 +1,4 @@
# hosts/app-01/default.nix
{
config,
lib,
@@ -7,6 +8,9 @@
...
}:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
network-dhcp = {
enable = true;
hardwareAddress = "BC:24:11:B7:0C:49";

View File

@@ -61,7 +61,4 @@
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}

View File

@@ -7,6 +7,9 @@
...
}:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
network-dhcp = {
enable = true;
hardwareAddress = "BC:24:11:67:42:BC";

View File

@@ -62,6 +62,4 @@
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}

View File

@@ -11,6 +11,9 @@ let
backupLabel = "mariadb";
in
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
network-dhcp = {
enable = true;
hardwareAddress = "BC:24:11:27:01:4B";

View File

@@ -56,7 +56,4 @@
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}

View File

@@ -8,6 +8,9 @@
}:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
network-dhcp = {
enable = true;
hardwareAddress = "BC:24:11:15:D0:D4";

View File

@@ -56,7 +56,4 @@
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}

View File

@@ -7,6 +7,9 @@
...
}:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
network-dhcp = {
enable = true;
hardwareAddress = "BC:24:11:F1:81:77";

View File

@@ -56,7 +56,4 @@
# networking.interfaces.enp6s18.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}

View File

@@ -8,6 +8,9 @@
}:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
network-dhcp = {
enable = true;
hardwareAddress = "BC:24:11:38:1C:54";

View File

@@ -61,7 +61,4 @@
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}

View File

@@ -34,6 +34,9 @@ let
rconPort = 25575;
in
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
network-dhcp = {
enable = true;
hardwareAddress = "BC:24:11:FD:EB:ED";

View File

@@ -61,7 +61,4 @@
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}

View File

@@ -7,6 +7,8 @@
...
}:
{
boot.loader.grub.device = "/dev/sda";
network-static = {
enable = true;
hardwareAddress = "96:00:04:60:9D:9C";

View File

@@ -7,7 +7,6 @@
}:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.loader.grub.device = "/dev/sda";
boot.initrd.availableKernelModules = [
"ata_piix"
"uhci_hcd"

View File

@@ -7,6 +7,9 @@
...
}:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
network-dhcp = {
enable = true;
hardwareAddress = "BC:24:11:AE:52:80";

View File

@@ -61,7 +61,4 @@
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}

View File

@@ -7,6 +7,8 @@
...
}:
{
boot.loader.grub.device = "/dev/sda";
network-static = {
enable = true;
hardwareAddress = "96:00:04:60:6E:04";

View File

@@ -7,7 +7,6 @@
}:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.loader.grub.device = "/dev/sda";
boot.initrd.availableKernelModules = [
"ata_piix"
"uhci_hcd"

View File

@@ -7,6 +7,9 @@
...
}:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
network-dhcp = {
enable = true;
hardwareAddress = "BC:24:11:0F:1B:A3";

View File

@@ -56,7 +56,4 @@
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}

View File

@@ -7,6 +7,9 @@
...
}:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
network-dhcp = {
enable = true;
hardwareAddress = "BC:24:11:1B:47:AF";

View File

@@ -57,7 +57,4 @@
# networking.interfaces.enp6s18.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}

View File

@@ -7,6 +7,9 @@
...
}:
{
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
network-dhcp = {
enable = true;
hardwareAddress = "BC:24:11:9C:0A:B4";

View File

@@ -56,7 +56,4 @@
# networking.interfaces.ens18.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}