From ee492efb2aa4d699b6be9cdf09c62730495e39ae Mon Sep 17 00:00:00 2001 From: lucy Date: Sat, 25 Jul 2026 17:28:34 +0200 Subject: [PATCH] add pc config --- flake.nix | 1 + hw-configs/desktop.nix | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 hw-configs/desktop.nix diff --git a/flake.nix b/flake.nix index 91868ca..94f9c2e 100644 --- a/flake.nix +++ b/flake.nix @@ -82,6 +82,7 @@ modules = [ ./configuration.nix ./nixvim/nixvim.nix + ./hw-configs/desktop.nix lanzaboote.nixosModules.lanzaboote nix-easyroam.nixosModules.nix-easyroam stylix.nixosModules.stylix diff --git a/hw-configs/desktop.nix b/hw-configs/desktop.nix new file mode 100644 index 0000000..64df67f --- /dev/null +++ b/hw-configs/desktop.nix @@ -0,0 +1,31 @@ +# 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, lib, pkgs, modulesPath, ... }: + +{ + imports = + [ (modulesPath + "/installer/scan/not-detected.nix") + ]; + + boot.initrd.availableKernelModules = [ "nvme" "ahci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/64a37727-0c5f-41d4-afac-dc26978916c1"; + fsType = "xfs"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/F424-0E3E"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}