This commit is contained in:
2025-08-15 12:25:44 +00:00
parent ded46ebce2
commit db35c08fc6
9 changed files with 67 additions and 14 deletions

View File

@@ -9,10 +9,12 @@
./hardware-configuration.nix
../../modules/odroid-m1-setleds.nix
../../modules/odroid-m1.nix
../../modules/keepalived.nix
];
nixpkgs.hostPlatform.system = "aarch64-linux";
networking.hostName = "odroid6";
custom.VIP_Priority = 100;
networking.interfaces.end0.ipv4.addresses = [
{
address = "192.168.4.226";

View File

@@ -9,6 +9,7 @@
./hardware-configuration.nix
../../modules/odroid-m1-setleds.nix
../../modules/odroid-m1.nix
../../modules/keepalived.nix
];
nixpkgs.hostPlatform.system = "aarch64-linux";

View File

@@ -10,6 +10,7 @@
../../modules/odroid-m1-setleds.nix
../../modules/odroid-m1.nix
../../modules/cifs.nix
../../modules/keepalived.nix
];
nixpkgs.hostPlatform.system = "aarch64-linux";

View File

@@ -7,11 +7,13 @@
}: {
imports = [
./hardware-configuration.nix
# ../../modules/keepalived.nix
];
nixpkgs.hostPlatform.system = "x86_64-linux";
networking.hostName = "opti1";
# custom._Networkinterface = "enp0s31f6";
# custom.VIP_Priority = 100;
networking.interfaces.end0.ipv4.addresses = [
{
address = "192.168.4.36";
@@ -19,6 +21,8 @@
}
];
networking.defaultGateway = "192.168.4.1";
networking.nameservers = ["192.168.4.1" "8.8.8.8"];
# Bootloader.

View File

@@ -12,7 +12,11 @@
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.kernelParams = [ "net.ifnames=0" "biosdevname=1" ];
systemd.network.links."10-custom-ethernet" = {
matchConfig.MACAddress = "d8:9e:f3:83:df:d6";
linkConfig.Name = "end0";
};
fileSystems."/" =
{ device = "/dev/disk/by-uuid/7245da7d-e72b-403a-8b72-e99cdd8c02fa";
fsType = "ext4";
@@ -27,7 +31,7 @@
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp0s20f0u3.useDHCP = lib.mkDefault true;
# networking.usePredictableInterfaceNames = true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}