this repo has no description
0
fork

Configure Feed

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

refactor!: enable all hardware instead of generating one per host

Tradeoff is larger binaries and higher disk usage.

Khue Doan 28811077 98c2c31d

+6 -92
-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 31 29 # This consumes significant memory on the live USB because dependencies are 32 30 # downloaded to tmpfs. The configuration must be small, or the machine must 33 31 # have a lot of RAM.
+1
configuration.nix
··· 45 45 }; 46 46 47 47 hardware = { 48 + enableAllHardware = true; 48 49 bluetooth.enable = true; 49 50 }; 50 51
+3 -3
hosts/codeserver/default.nix
··· 1 1 { pkgs, ... }: 2 2 3 3 { 4 - imports = [ 5 - ./hardware-configuration.nix 6 - ]; 4 + nixpkgs = { 5 + hostPlatform = "x86_64-linux"; 6 + }; 7 7 8 8 networking = { 9 9 hostName = "codeserver";
-24
hosts/codeserver/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 + "/profiles/qemu-guest.nix") 9 - ]; 10 - 11 - boot.initrd.availableKernelModules = [ "xhci_pci" "virtio_pci" "usbhid" "usb_storage" "sr_mod" ]; 12 - boot.initrd.kernelModules = [ ]; 13 - boot.kernelModules = [ ]; 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.enp0s1.useDHCP = lib.mkDefault true; 22 - 23 - nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux"; 24 - }
+1 -4
hosts/ryzentower/default.nix
··· 1 1 { lib, ... }: 2 2 3 3 { 4 - imports = [ 5 - ./hardware-configuration.nix 6 - ]; 7 - 8 4 networking = { 9 5 hostName = "ryzentower"; 10 6 }; ··· 16 12 }; 17 13 18 14 nixpkgs = { 15 + hostPlatform = "x86_64-linux"; 19 16 config = { 20 17 rocmSupport = true; 21 18 allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
-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 - }
+1 -4
hosts/thinkpadz13/default.nix
··· 1 1 { pkgs, ... }: 2 2 3 3 { 4 - imports = [ 5 - ./hardware-configuration.nix 6 - ]; 7 - 8 4 hardware = { 9 5 graphics = { 10 6 enable32Bit = true; ··· 21 17 }; 22 18 23 19 nixpkgs = { 20 + hostPlatform = "x86_64-linux"; 24 21 config = { 25 22 rocmSupport = true; 26 23 };
-24
hosts/thinkpadz13/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" "thunderbolt" ]; 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 - 22 - nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; 23 - hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; 24 - }