diff options
author | lassulus <lassulus@lassul.us> | 2022-12-28 11:18:54 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2022-12-28 11:29:48 +0100 |
commit | adc11cf679970da26f82e5200f2ea2a94c59e8be (patch) | |
tree | 396454565852784c27c3187c3e9aa9f3f4e5c3a3 /lass/1systems/neoprism/physical.nix | |
parent | 351667fe85202192fdc442ce22dd5e75aa844598 (diff) |
l neoprism.r: init
Diffstat (limited to 'lass/1systems/neoprism/physical.nix')
-rw-r--r-- | lass/1systems/neoprism/physical.nix | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/lass/1systems/neoprism/physical.nix b/lass/1systems/neoprism/physical.nix new file mode 100644 index 000000000..4ffb749f1 --- /dev/null +++ b/lass/1systems/neoprism/physical.nix @@ -0,0 +1,42 @@ +{ config, lib, pkgs, ... }: + +{ + + imports = [ + ./config.nix + <nixpkgs/nixos/modules/installer/scan/not-detected.nix> + ]; + + disko.devices = import ./disk.nix; + boot.loader.grub.enable = true; + boot.loader.grub.version = 2; + boot.loader.grub.efiSupport = true; + boot.loader.grub.devices = [ "/dev/nvme0n1" "/dev/nvme1n1" ]; + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "sd_mod" ]; + boot.kernelModules = [ "kvm-amd" ]; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + + # networking config + boot.kernelParams = [ "net.ifnames=0" ]; + networking.bridges."ext-br".interfaces = [ "eth0" ]; + networking = { + hostId = "2283aaae"; + defaultGateway = "95.217.192.1"; + defaultGateway6 = { address = "fe80::1"; interface = "ext-br"; }; + # Use google's public DNS server + nameservers = [ "8.8.8.8" ]; + interfaces.ext-br.ipv4.addresses = [ + { + address = "95.217.192.59"; + prefixLength = 26; + } + ]; + interfaces.ext-br.ipv6.addresses = [ + { + address = "2a01:4f9:4a:4f1a::1"; + prefixLength = 64; + } + ]; + }; + +} |