From fafee57bb9385075515c1a0b144062e06ffc3889 Mon Sep 17 00:00:00 2001 From: George Chatzopoulos Date: Mon, 2 Nov 2026 15:38:21 +0200 Subject: [PATCH] Adding the hardware-configuration.nix to gitea. --- .gitignore | 1 - hardware-configuration.nix | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 hardware-configuration.nix diff --git a/.gitignore b/.gitignore index 7e9588c..5f63d8b 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,4 @@ *.swp # Environment files -hardware-configuration.nix .env \ No newline at end of file diff --git a/hardware-configuration.nix b/hardware-configuration.nix new file mode 100644 index 0000000..bd31306 --- /dev/null +++ b/hardware-configuration.nix @@ -0,0 +1,33 @@ +# 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" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/718086f6-a44b-43ba-af90-f9e28aabf4be"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/D5FE-4242"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/0c4b9acb-d78f-4936-b32a-8f91e66c94b1"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +} \ No newline at end of file