Update hardware-configuration.nix

This commit is contained in:
ska
2025-12-19 23:09:06 +00:00
parent 83aa0b3c90
commit 9201538643

View File

@@ -1,32 +1,29 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by 'nixos-generate-config'
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }: { config, lib, pkgs, modulesPath, ... }:
{ {
imports = imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
[ (modulesPath + "/profiles/qemu-guest.nix")
];
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "usb_storage" "sd_mod" "sr_mod" ]; boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "virtio_pci" "virtio_scsi" "usb_storage" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
fileSystems."/" = fileSystems."/" =
{ device = "/dev/mapper/luks-67d79bf0-fc76-43b7-b44a-d72d211f3aaa"; { device = "/dev/disk/by-label/nixos-root";
fsType = "ext4"; fsType = "ext4";
}; };
boot.initrd.luks.devices."luks-67d79bf0-fc76-43b7-b44a-d72d211f3aaa".device = "/dev/disk/by-uuid/67d79bf0-fc76-43b7-b44a-d72d211f3aaa";
fileSystems."/boot" = fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/0371-FE33"; { device = "/dev/disk/by-label/nixos-boot";
fsType = "vfat"; fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ]; options = [ "fmask=0077" "dmask=0077" ];
}; };
# Use a label for LUKS device to make it portable
boot.initrd.luks.devices."root".device = "/dev/disk/by-label/nixos-encrypted";
swapDevices = [ ]; swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
} }