summaryrefslogtreecommitdiff
path: root/machines/magician/hardware-configuration.nix
diff options
context:
space:
mode:
authorAlexander Kassouni <alex@kassouni.net>2026-08-28 23:27:52 -0700
committerAlexander Kassouni <alex@kassouni.net>2026-08-28 23:27:52 -0700
commit8dcf355819cc6cd1e87924218c1adcd900ecda84 (patch)
tree940ef0f569279f4ab78c1320321ff4c07453eb5a /machines/magician/hardware-configuration.nix
parent332b06fd9baefdfa2b043b8e2c72b8c110940fc5 (diff)
refactor base nixos modules
Diffstat (limited to 'machines/magician/hardware-configuration.nix')
-rw-r--r--machines/magician/hardware-configuration.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/machines/magician/hardware-configuration.nix b/machines/magician/hardware-configuration.nix
new file mode 100644
index 0000000..970852d
--- /dev/null
+++ b/machines/magician/hardware-configuration.nix
@@ -0,0 +1,32 @@
+# 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 = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ "kvm-intel" ];
+ boot.extraModulePackages = [ ];
+
+ fileSystems."/" =
+ { device = "/dev/disk/by-uuid/6ec028fe-0eda-4877-83d3-dabb244f6078";
+ fsType = "ext4";
+ };
+
+ fileSystems."/boot" =
+ { device = "/dev/disk/by-uuid/8980-2C75";
+ fsType = "vfat";
+ options = [ "fmask=0077" "dmask=0077" ];
+ };
+
+ swapDevices = [ ];
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+ hardware.cpu.intel.npu.enable = true;
+ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
+}