This repository has no description
0

Configure Feed

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

superconfig / machines / starkstrom / physical.nix
1.2 kB 52 lines
1{ 2 self, 3 modulesPath, 4 lib, 5 ... 6}: 7{ 8 imports = [ 9 ./config.nix 10 (modulesPath + "/installer/scan/not-detected.nix") 11 self.inputs.disko.nixosModules.disko 12 ./disk.nix 13 ]; 14 15 # x86_64 KVM guest; clan writes facter.json during install (which also sets 16 # this), so keep it overridable. 17 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 18 networking.hostId = "5a17c0de"; 19 20 # KVM guest, legacy BIOS boot. disko registers /dev/vda as the GRUB target 21 # via the EF02 partition, so don't set boot.loader.grub.device here. 22 boot.loader.grub = { 23 enable = true; 24 efiSupport = false; 25 }; 26 27 boot.initrd.availableKernelModules = [ 28 "virtio_pci" 29 "virtio_scsi" 30 "virtio_blk" 31 "virtio_net" 32 "sr_mod" 33 "ahci" 34 ]; 35 36 # Single static public IPv4 on the virtio NIC (matched by its MAC so the 37 # kernel-assigned interface name is irrelevant). No provider IPv6. 38 networking.useDHCP = false; 39 networking.useNetworkd = true; 40 systemd.network = { 41 enable = true; 42 networks."10-wan" = { 43 matchConfig.MACAddress = "00:16:3c:9d:04:c1"; 44 address = [ "194.110.87.67/24" ]; 45 routes = [ { Gateway = "194.110.87.1"; } ]; 46 dns = [ 47 "8.8.8.8" 48 "8.8.4.4" 49 ]; 50 }; 51 }; 52}