aboutsummaryrefslogtreecommitdiff
path: root/machines/phaenn/default.nix
blob: 8fbbfabffc9be37e165bff59fbfc54702c4d1234 (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
43
44
45
46
47
{ config, lib, pkgs, ... }:

{
  imports = [
    ./fs.nix
  ];

  boot.initrd.availableKernelModules = [ "ahci" "nvme" ];
  boot.initrd.kernelModules = [ "zfs" ];
  boot.kernelModules = [ "kvm-amd" "zfs" ];
  boot.extraModulePackages = [ ];

  boot.loader.grub = {
    zfsSupport = true;
    mirroredBoots = [
      { devices = [ "/dev/sdd" ]; path = "/boot"; }
      { devices = [ "/dev/sdc" ]; path = "/boot2"; }
      { devices = [ "/dev/sda" ]; path = "/boot3"; }
      { devices = [ "/dev/sdb" ]; path = "/boot4"; }
    ];
  };

  networking = {
    domain = "vapor.systems";
    hostId = "f9274217";
    dhcpcd.enable = false;
    usePredictableInterfaceNames = false;
    enableIPv6 = true;
    interfaces.eth0.ipv4.addresses = [{
      address = "142.132.159.202";
      prefixLength = 26;
    }];
    interfaces.eth0.ipv6.addresses = [{
      address = "2a01:4f8:261:3a04::1";
      prefixLength = 64;
    }];
    defaultGateway = "142.132.159.193";
    defaultGateway6 = {
      address = "fe80::1";
      interface = "eth0";
    };
    nameservers = [ "1.1.1.1" "8.8.8.8" ];
  };

  powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
  hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}