nixos/stream: Initial working config
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 15m5s
All checks were successful
CI / Check, build and cache Nix flake (push) Successful in 15m5s
This commit is contained in:
@@ -1,10 +1,5 @@
|
||||
{
|
||||
imports = [
|
||||
(import ./routing-common {
|
||||
index = 1;
|
||||
name = "stream";
|
||||
})
|
||||
];
|
||||
imports = [ (import ./routing-common 1) ];
|
||||
|
||||
config.nixos.systems.stream = {
|
||||
system = "x86_64-linux";
|
||||
@@ -18,7 +13,9 @@
|
||||
{
|
||||
config = {
|
||||
boot = {
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
kernelParams = [ "intel_iommu=on" ];
|
||||
initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||
};
|
||||
|
||||
hardware = {
|
||||
@@ -30,25 +27,83 @@
|
||||
|
||||
fileSystems = {
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-label/ESP";
|
||||
device = "/dev/disk/by-partuuid/fe081885-9157-46b5-be70-46ac6fcb4069";
|
||||
fsType = "vfat";
|
||||
};
|
||||
"/nix" = {
|
||||
device = "/dev/disk/by-label/nix";
|
||||
device = "/dev/disk/by-partuuid/a195e55e-397f-440d-a190-59ffa63cdb3f";
|
||||
fsType = "ext4";
|
||||
};
|
||||
"/persist" = {
|
||||
device = "/dev/disk/by-label/persist";
|
||||
device = "/dev/disk/by-partuuid/ad71fafd-2d26-49c8-b0cb-794a28e0beb7";
|
||||
fsType = "ext4";
|
||||
neededForBoot = true;
|
||||
};
|
||||
};
|
||||
|
||||
systemd.network = {
|
||||
links = {
|
||||
"10-wan-phy" = {
|
||||
matchConfig = {
|
||||
# Matching against MAC address seems to break VLAN interfaces
|
||||
# (since they share the same MAC address)
|
||||
Driver = "igc";
|
||||
PermanentMACAddress = "00:f0:cb:ee:ca:dd";
|
||||
};
|
||||
linkConfig = {
|
||||
Name = "wan-phy";
|
||||
RxBufferSize = 4096;
|
||||
TxBufferSize = 4096;
|
||||
};
|
||||
};
|
||||
"10-lan-jim" = {
|
||||
matchConfig = {
|
||||
Driver = "igc";
|
||||
PermanentMACAddress = "00:f0:cb:ee:ca:de";
|
||||
};
|
||||
linkConfig = {
|
||||
Name = "lan-jim";
|
||||
MTUBytes = toString lib.my.c.home.hiMTU;
|
||||
};
|
||||
};
|
||||
"10-et2" = {
|
||||
matchConfig = {
|
||||
Driver = "igc";
|
||||
PermanentMACAddress = "00:f0:cb:ee:ca:df";
|
||||
};
|
||||
linkConfig.Name = "et2";
|
||||
};
|
||||
|
||||
"10-lan-dave" = {
|
||||
matchConfig = {
|
||||
Driver = "mlx4_en";
|
||||
PermanentMACAddress = "00:02:c9:d5:b1:d6";
|
||||
};
|
||||
linkConfig = {
|
||||
Name = "lan-dave";
|
||||
MTUBytes = toString lib.my.c.home.hiMTU;
|
||||
};
|
||||
};
|
||||
"10-et5" = {
|
||||
matchConfig = {
|
||||
Driver = "mlx4_en";
|
||||
PermanentMACAddress = "00:02:c9:d5:b1:d7";
|
||||
};
|
||||
linkConfig.Name = "et5";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
pdns-recursor.settings.query-local-address = [ "109.255.252.104" ];
|
||||
};
|
||||
|
||||
my = {
|
||||
secrets = {
|
||||
# key = "ssh-ed25519 ";
|
||||
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPYTB4zeAqotrEJ8M+AiGm/s9PFsWlAodz3hYSROGuDb";
|
||||
};
|
||||
server.enable = true;
|
||||
deploy.node.hostname = "109.255.252.104";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Reference in New Issue
Block a user