From d73a9ab625ec8aa08acb6b4990d3d7256685ffc5 Mon Sep 17 00:00:00 2001 From: ska Date: Fri, 19 Dec 2025 14:49:17 +0000 Subject: [PATCH] Add hardware-configuration.nix --- hardware-configuration.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 hardware-configuration.nix diff --git a/hardware-configuration.nix b/hardware-configuration.nix new file mode 100644 index 0000000..6b61fc1 --- /dev/null +++ b/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 + "/profiles/qemu-guest.nix") + ]; + + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "usb_storage" "sd_mod" "sr_mod" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/mapper/luks-67d79bf0-fc76-43b7-b44a-d72d211f3aaa"; + fsType = "ext4"; + }; + + boot.initrd.luks.devices."luks-67d79bf0-fc76-43b7-b44a-d72d211f3aaa".device = "/dev/disk/by-uuid/67d79bf0-fc76-43b7-b44a-d72d211f3aaa"; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/0371-FE33"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; +}