From 8dcf355819cc6cd1e87924218c1adcd900ecda84 Mon Sep 17 00:00:00 2001 From: Alexander Kassouni Date: Fri, 28 Aug 2026 23:27:52 -0700 Subject: refactor base nixos modules --- machines/magician/hardware-configuration.nix | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 machines/magician/hardware-configuration.nix (limited to 'machines/magician/hardware-configuration.nix') 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; +} -- cgit v1.3.1