copy hardware configuration to home-nix

This commit is contained in:
Jérémie SALVI
2025-09-25 23:24:52 +02:00
parent 47160768ee
commit 81c83f6264
2 changed files with 6 additions and 11 deletions

View File

@@ -10,9 +10,10 @@
content = { content = {
type = "gpt"; type = "gpt";
partitions = { partitions = {
ESP = { EFI = {
size = "512M"; size = "512M";
type = "EF00"; type = "EF00";
name = "EFI";
content = { content = {
type = "filesystem"; type = "filesystem";
format = "vfat"; format = "vfat";
@@ -23,6 +24,7 @@
SYS = { SYS = {
size = "100%"; size = "100%";
type = "8309"; type = "8309";
name = "SYS";
content = { content = {
type = "luks"; type = "luks";
name = "rootfs"; name = "rootfs";

View File

@@ -5,21 +5,14 @@
{ {
imports = imports =
[ [ (modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
]; ];
boot.initrd.availableKernelModules = [ boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
"ahci"
"xhci_pci"
"virtio_pci"
"sr_mod"
"virtio_blk"
];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }