From 7ae2f5ca07e59c5baf1a19018e5f07fdfb41bb59 Mon Sep 17 00:00:00 2001 From: Dea Date: Thu, 8 Jan 2026 22:14:01 -0500 Subject: [PATCH] added host pc --- flake.nix | 16 +++++------ hosts/sandalphon/hardware-configuration.nix | 31 +++++++++++++++++++++ 2 files changed, 39 insertions(+), 8 deletions(-) create mode 100644 hosts/sandalphon/hardware-configuration.nix diff --git a/flake.nix b/flake.nix index 511dd15..d1d6c30 100644 --- a/flake.nix +++ b/flake.nix @@ -31,13 +31,13 @@ ++ commonModules; }; - # pc - # nixosConfigurations.sandalphon = lib.nixosSystem { - # specialArgs = { inherit inputs; }; - # modules = [ - # ./hosts/sandalphon/hardware-configuration.nix - # ] - # ++ commonModules; - # }; +# pc + nixosConfigurations.sandalphon = lib.nixosSystem { + specialArgs = { inherit inputs; }; + modules = [ + ./hosts/sandalphon/hardware-configuration.nix + ] + ++ commonModules; + }; }; } diff --git a/hosts/sandalphon/hardware-configuration.nix b/hosts/sandalphon/hardware-configuration.nix new file mode 100644 index 0000000..072961b --- /dev/null +++ b/hosts/sandalphon/hardware-configuration.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" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-amd" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/f66916c1-a834-4fb4-9ded-ee04d3650baf"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/E474-7CAD"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}