Setup Commit

This commit is contained in:
NyxErinys 2026-05-17 16:06:46 -05:00
commit 289b69d342
23 changed files with 728 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ config, pkgs, lib, ... }:
{
imports = [
../../../../modules/vrrp.nix
../../../../modules/nginx.nix
];
networking.hostName = "alpha";
nyxs-nix.services.vrrp = {
enable = true;
priority = 200;
peers = [
"10.5.0.102"
];
};
systemd.network.links."10-eth0" = {
matchConfig.PermanentMACAddress = "00:25:90:e6:e1:0e";
linkConfig.Name = "eth0";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/29a440ba-305c-4041-b45d-502b5cf3a514";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/A579-28EC";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
}

View file

@ -0,0 +1,33 @@
{ config, pkgs, lib, ... }:
{
imports = [
../../../../modules/vrrp.nix
../../../../modules/nginx.nix
];
networking.hostName = "beta";
nyxs-nix.services.vrrp = {
enable = true;
priority = 150;
peers = [
"10.5.0.101"
];
};
systemd.network.links."10-eth0" = {
matchConfig.PermanentMACAddress = "00:25:90:e6:e1:10";
linkConfig.Name = "eth0";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/7422bf7a-0760-41f2-aad3-28eff66c4b4d";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/0DED-C0F5";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
}

View file

@ -0,0 +1,29 @@
{ config, pkgs, lib, ... }:
{
imports = [
../../../../modules/k3s
];
networking.hostName = "gamma";
nyxs-nix.services.k3s = {
enable = true;
initServer = true;
};
systemd.network.links."10-eth0" = {
matchConfig.PermanentMACAddress = "00:25:90:e6:e1:09";
linkConfig.Name = "eth0";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/8d8325bb-b5ba-469b-8054-b295bbbc70c2";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/0954-3305";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
}

View file

@ -0,0 +1,28 @@
{ config, pkgs, lib, ... }:
{
imports = [
../../../../modules/k3s
];
networking.hostName = "delta";
nyxs-nix.services.k3s = {
enable = true;
};
systemd.network.links."10-eth0" = {
matchConfig.PermanentMACAddress = "00:25:90:e6:e1:63";
linkConfig.Name = "eth0";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/103ed8d1-3681-4d67-938c-e7349447fcbb";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/4EB3-06A1";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
}

View file

@ -0,0 +1,28 @@
{ config, pkgs, lib, ... }:
{
imports = [
../../../../modules/k3s
];
networking.hostName = "epsilon";
nyxs-nix.services.k3s = {
enable = true;
};
systemd.network.links."10-eth0" = {
matchConfig.PermanentMACAddress = "00:25:90:e6:e1:21";
linkConfig.Name = "eth0";
};
fileSystems."/" = {
device = "/dev/disk/by-uuid/a0c8475c-cda8-4ceb-bbad-50d9537924be";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/8D63-DF1F";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
}

View file

View file

View file

@ -0,0 +1,8 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
./hardware.nix
../../../modules/sops.nix
];
}

View file

@ -0,0 +1,16 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -0,0 +1,43 @@
{ inputs }:
{
alpha = inputs.nixpkgs.lib.nixosSystem {
modules = [
../../base.nix
../blades
./1-alpha
];
specialArgs = { inherit inputs; };
};
beta = inputs.nixpkgs.lib.nixosSystem {
modules = [
../../base.nix
../blades
./2-beta
];
specialArgs = { inherit inputs; };
};
gamma = inputs.nixpkgs.lib.nixosSystem {
modules = [
../../base.nix
../blades
./3-gamma
];
specialArgs = { inherit inputs; };
};
delta = inputs.nixpkgs.lib.nixosSystem {
modules = [
../../base.nix
../blades
./4-delta
];
specialArgs = { inherit inputs; };
};
epsilon = inputs.nixpkgs.lib.nixosSystem {
modules = [
../../base.nix
../blades
./5-epsilon
];
specialArgs = { inherit inputs; };
};
}

View file

@ -0,0 +1,27 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
../../modules/sops.nix
];
networking.hostName = "iris";
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
boot.initrd.availableKernelModules = [ "usbhid" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
fsType = "ext4";
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
}

View file