This repository has no description
0

Configure Feed

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

superconfig / machines / neoprism / physical.nix
1.9 kB 90 lines
1{ 2 self, 3 modulesPath, 4 config, 5 lib, 6 pkgs, 7 ... 8}: 9{ 10 11 imports = [ 12 ./config.nix 13 (modulesPath + "/installer/scan/not-detected.nix") 14 self.inputs.disko.nixosModules.disko 15 ./disk.nix 16 ]; 17 18 networking.hostId = "9c0a74ac"; 19 boot.kernelPackages = pkgs.zfs.latestCompatibleLinuxPackages; 20 21 boot.loader.grub.enable = true; 22 boot.loader.grub.efiSupport = true; 23 boot.initrd.availableKernelModules = [ 24 "xhci_pci" 25 "ahci" 26 "nvme" 27 "sd_mod" 28 ]; 29 boot.kernelParams = [ 30 "boot.shell_on_fail" 31 ]; 32 boot.kernelModules = [ "kvm-amd" ]; 33 hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 34 35 # networking config 36 networking.useNetworkd = true; 37 systemd.network = { 38 enable = true; 39 config = { 40 networkConfig.SpeedMeter = true; 41 }; 42 # netdevs.ext-br.netdevConfig = { 43 # Kind = "bridge"; 44 # Name = "ext-br"; 45 # MACAddress = "a8:a1:59:0f:2d:69"; 46 # }; 47 # networks.ext-br = { 48 # name = "ext-br"; 49 # address = [ 50 # "95.217.192.59/26" 51 # "2a01:4f9:4a:4f1a::1/64" 52 # ]; 53 # gateway = [ 54 # "95.217.192.1" 55 # "fe80::1" 56 # ]; 57 # }; 58 networks."01-enp" = { 59 #bridge = [ "ext-br" ]; 60 matchConfig.Name = "enp35s0"; 61 address = [ 62 "95.217.192.59/26" 63 "2a01:4f9:4a:4f1a::2/64" 64 ]; 65 gateway = [ 66 "95.217.192.1" 67 "fe80::1" 68 ]; 69 }; 70 }; 71 72 networking.useDHCP = false; 73 # boot.initrd.network = { 74 # enable = true; 75 # ssh = { 76 # enable = true; 77 # authorizedKeys = [ config.krebs.users.lass.pubkey ]; 78 # port = 2222; 79 # hostKeys = [ 80 # (<secrets/ssh.id_ed25519>) 81 # (<secrets/ssh.id_rsa>) 82 # ]; 83 # }; 84 # }; 85 # boot.kernelParams = [ 86 # "net.ifnames=0" 87 # "ip=dhcp" 88 # "boot.trace" 89 # ]; 90}