This repository has no description
0

Configure Feed

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

superconfig / machines / acheron / physical.nix
1.4 kB 48 lines
1{ 2 self, 3 modulesPath, 4 config, 5 lib, 6 ... 7}: 8{ 9 imports = [ 10 ./config.nix 11 (modulesPath + "/installer/scan/not-detected.nix") 12 self.inputs.disko.nixosModules.disko 13 ./disk.nix 14 ]; 15 16 # Fanless mini PC: Intel Core 3 N355 (8c), 32 GiB, 1 TB NVMe, 2x I226-V. 17 # clan writes facter.json during install (which also sets this), so keep it 18 # overridable. 19 nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 20 networking.hostId = "ac4e5011"; 21 22 boot.loader.systemd-boot.enable = true; 23 boot.loader.systemd-boot.configurationLimit = 10; 24 boot.loader.efi.canTouchEfiVariables = true; 25 26 boot.initrd.availableKernelModules = [ 27 "xhci_pci" 28 "ahci" 29 "nvme" 30 "usbhid" 31 "sd_mod" 32 ]; 33 boot.kernelModules = [ "kvm-intel" ]; 34 boot.kernelParams = [ 35 "boot.shell_on_fail" 36 ]; 37 hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 38 39 # Both ports are Intel I226-V (igc). Same naming as styx so 2configs/gg23.nix 40 # applies unchanged: et0 = WAN (uplink, DHCP client), int0 = LAN (10.42.0.1). 41 # Port 1 (enp2s0) is the uplink, port 2 (enp3s0) faces the gg23 LAN. 42 services.udev.extraRules = '' 43 SUBSYSTEM=="net", ATTR{address}=="a8:b8:e0:08:28:94", NAME="et0" 44 SUBSYSTEM=="net", ATTR{address}=="a8:b8:e0:08:28:95", NAME="int0" 45 ''; 46 47 powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; 48}