From 769ab6f72d9ddcbadc9e07501364a54c897c1e8d Mon Sep 17 00:00:00 2001 From: "Wyatt J. Miller" Date: Sun, 15 Feb 2026 22:49:56 +0000 Subject: [PATCH] added hardware config --- .../thancred/hardware-configuration.nix | 33 +++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/modules/machine/thancred/hardware-configuration.nix b/modules/machine/thancred/hardware-configuration.nix index c81f1da..2305e76 100644 --- a/modules/machine/thancred/hardware-configuration.nix +++ b/modules/machine/thancred/hardware-configuration.nix @@ -1,3 +1,32 @@ -{ ... }: { - # TODO: needs to filled out later +# 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 + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/0a885c0e-cf31-43b7-9a91-6f9624758102"; + fsType = "xfs"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/C7B5-89D4"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + swapDevices = + [ { device = "/dev/disk/by-uuid/860c75ce-3afe-47cf-90d8-7612ab543a1e"; } + ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; }