This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

superconfig / machines / prism / physical.nix
2.5 kB 119 lines
1{ modulesPath, lib, ... }: 2 3{ 4 5 imports = [ 6 ./config.nix 7 (modulesPath + "/installer/scan/not-detected.nix") 8 ]; 9 10 boot.initrd.availableKernelModules = [ 11 "xhci_pci" 12 "ahci" 13 "sd_mod" 14 ]; 15 boot.kernelModules = [ "kvm-intel" ]; 16 boot.swraid.enable = true; 17 18 fileSystems."/" = { 19 device = "rpool/root/nixos"; 20 fsType = "zfs"; 21 }; 22 23 fileSystems."/boot" = { 24 device = "/dev/disk/by-uuid/d155d6ff-8e89-4876-a9e7-d1b7ba6a4804"; 25 fsType = "ext4"; 26 }; 27 28 fileSystems."/backups" = { 29 device = "tank/backups"; 30 fsType = "zfs"; 31 }; 32 33 fileSystems."/srv/http" = { 34 device = "tank/srv-http"; 35 fsType = "zfs"; 36 }; 37 38 fileSystems."/var/download" = { 39 device = "tank/download"; 40 fsType = "zfs"; 41 }; 42 43 fileSystems."/var/lib/containers" = { 44 device = "tank/containers"; 45 fsType = "zfs"; 46 }; 47 48 fileSystems."/home" = { 49 device = "tank/home"; 50 fsType = "zfs"; 51 }; 52 53 fileSystems."/var/lib/nextcloud" = { 54 device = "tank/nextcloud"; 55 fsType = "zfs"; 56 }; 57 58 fileSystems."/var/lib/libvirt" = { 59 device = "tank/libvirt"; 60 fsType = "zfs"; 61 }; 62 63 fileSystems."/var/realwallpaper/archive" = { 64 device = "tank/wallpaper"; 65 fsType = "zfs"; 66 }; 67 68 # silence mdmonitor.service failures 69 # https://github.com/NixOS/nixpkgs/issues/72394 70 environment.etc."mdadm.conf".text = '' 71 MAILADDR root 72 ''; 73 74 nix.settings.max-jobs = lib.mkDefault 8; 75 powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; 76 77 boot.loader.grub.enable = true; 78 boot.loader.grub.devices = [ 79 "/dev/sda" 80 "/dev/sdb" 81 ]; 82 83 # we don't pay for power there and this might solve a problem we observed at least once 84 # https://www.thomas-krenn.com/de/wiki/PCIe_Bus_Error_Status_00001100_beheben 85 boot.kernelParams = [ 86 "pcie_aspm=off" 87 "net.ifnames=0" 88 "nomodeset" 89 ]; 90 networking.dhcpcd.enable = false; 91 92 networking.useNetworkd = lib.mkForce false; 93 systemd.network.enable = lib.mkForce false; 94 # bridge config 95 networking.bridges."ext-br".interfaces = [ "eth0" ]; 96 networking = { 97 hostId = "2283aaae"; 98 defaultGateway = "95.216.1.129"; 99 defaultGateway6 = { 100 address = "fe80::1"; 101 interface = "ext-br"; 102 }; 103 # Use google's public DNS server 104 nameservers = [ "8.8.8.8" ]; 105 interfaces.ext-br.ipv4.addresses = [ 106 { 107 address = "95.216.1.150"; 108 prefixLength = 26; 109 } 110 ]; 111 interfaces.ext-br.ipv6.addresses = [ 112 { 113 address = "2a01:4f9:2a:1e9::1"; 114 prefixLength = 64; 115 } 116 ]; 117 }; 118 119}