this repo has no description
0
fork

Configure Feed

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

feat: auto gen hardware config

+36 -1
+2
Makefile
··· 26 26 nix flake update 27 27 28 28 install: 29 + nixos-generate-config --no-filesystems --show-hardware-config > 'hosts/${host}/hardware-configuration.nix' 30 + git add . && git diff --staged 29 31 # This consumes significant memory on the live USB because dependencies are 30 32 # downloaded to tmpfs. The configuration must be small, or the machine must 31 33 # have a lot of RAM.
+3 -1
hosts/ryzentower/default.nix
··· 1 1 { pkgs, ... }: 2 2 3 3 { 4 - disko.devices.disk.main.device = "/dev/sda"; 4 + imports = [ 5 + ./hardware-configuration.nix 6 + ]; 5 7 6 8 hardware = { 7 9 graphics = {
+31
hosts/ryzentower/hardware-configuration.nix
··· 1 + # Do not modify this file! It was generated by ‘nixos-generate-config’ 2 + # and may be overwritten by future invocations. Please make changes 3 + # to /etc/nixos/configuration.nix instead. 4 + { config, lib, pkgs, modulesPath, ... }: 5 + 6 + { 7 + imports = 8 + [ (modulesPath + "/installer/scan/not-detected.nix") 9 + ]; 10 + 11 + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; 12 + boot.initrd.kernelModules = [ ]; 13 + boot.kernelModules = [ "kvm-amd" ]; 14 + boot.extraModulePackages = [ ]; 15 + 16 + # Enables DHCP on each ethernet and wireless interface. In case of scripted networking 17 + # (the default) this is the recommended approach. When using systemd-networkd it's 18 + # still possible to use this option, but it's recommended to use it in conjunction 19 + # with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. 20 + networking.useDHCP = lib.mkDefault true; 21 + # networking.interfaces.docker0.useDHCP = lib.mkDefault true; 22 + # networking.interfaces.enp37s0.useDHCP = lib.mkDefault true; 23 + # networking.interfaces.tailscale0.useDHCP = lib.mkDefault true; 24 + # networking.interfaces.tun0.useDHCP = lib.mkDefault true; 25 + # networking.interfaces.virbr0.useDHCP = lib.mkDefault true; 26 + # networking.interfaces.vnet1.useDHCP = lib.mkDefault true; 27 + # networking.interfaces.wlp38s0.useDHCP = lib.mkDefault true; 28 + 29 + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 30 + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 31 + }