diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-10-12 15:45:01 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-10-12 15:45:01 -0700 |
| commit | aa05056e55dfa143b38776737802b7dfb8a2c0e4 (patch) | |
| tree | 9f4a2ce339355a8299e172e5512ac35c6b3c7d0f /machines/nixos/x86_64-linux/rivendell/hardware-configuration.nix | |
| parent | configure podman for all nixos machines (diff) | |
| download | infra-aa05056e55dfa143b38776737802b7dfb8a2c0e4.tar.gz | |
initial setup for the framework destkop (named rivendell)
Diffstat (limited to '')
| -rw-r--r-- | machines/nixos/x86_64-linux/rivendell/hardware-configuration.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/machines/nixos/x86_64-linux/rivendell/hardware-configuration.nix b/machines/nixos/x86_64-linux/rivendell/hardware-configuration.nix new file mode 100644 index 0000000..02de536 --- /dev/null +++ b/machines/nixos/x86_64-linux/rivendell/hardware-configuration.nix @@ -0,0 +1,38 @@ +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ + config, + inputs, + lib, + modulesPath, + ... +}: + +{ + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + inputs.nixos-hardware.nixosModules.framework-desktop-amd-ai-max-300-series + ]; + + services.fwupd.enable = true; + hardware.enableRedistributableFirmware = true; + + boot.initrd.availableKernelModules = [ + "nvme" + "xhci_pci" + "thunderbolt" + "usbhid" + "usb_storage" + "sd_mod" + "r8169" # ethernet driver + ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + networking.useDHCP = lib.mkDefault true; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} |
