summaryrefslogtreecommitdiffstats
path: root/lass/1systems/neoprism/physical.nix
blob: 4ffb749f1b8e037818d15339ee4b88ddc00b20b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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;
      }
    ];
  };

}