hosts: move bootloader config to default.nix files
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
...
|
||||
}:
|
||||
{
|
||||
boot.loader.grub.device = "/dev/sda";
|
||||
|
||||
network-static = {
|
||||
enable = true;
|
||||
hardwareAddress = "96:00:04:60:9D:9C";
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
}:
|
||||
{
|
||||
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
||||
boot.loader.grub.device = "/dev/sda";
|
||||
boot.initrd.availableKernelModules = [
|
||||
"ata_piix"
|
||||
"uhci_hcd"
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
...
|
||||
}:
|
||||
{
|
||||
boot.loader.grub.device = "/dev/sda";
|
||||
|
||||
network-static = {
|
||||
enable = true;
|
||||
hardwareAddress = "96:00:04:60:6E:04";
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
}:
|
||||
{
|
||||
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
|
||||
boot.loader.grub.device = "/dev/sda";
|
||||
boot.initrd.availableKernelModules = [
|
||||
"ata_piix"
|
||||
"uhci_hcd"
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user