infra/hosts/underground/hardware-configuration.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
918 B
Nix
Raw Normal View History

# 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.
2024-10-27 16:28:20 +00:00
{
config,
lib,
pkgs,
modulesPath,
...
}:
{
2024-10-27 16:28:20 +00:00
imports = [
(modulesPath + "/profiles/qemu-guest.nix")
];
2024-10-27 16:28:20 +00:00
boot.initrd.availableKernelModules = [
"ahci"
"xhci_pci"
"virtio_pci"
"virtio_scsi"
"sd_mod"
"sr_mod"
];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
boot.initrd.luks.devices."cryptroot" = {
device = "/dev/disk/by-label/cryptroot";
};
2024-10-27 16:28:20 +00:00
fileSystems."/" = {
device = "/dev/disk/by-label/root";
fsType = "ext4";
};
2024-10-27 16:28:20 +00:00
fileSystems."/boot" = {
device = "/dev/disk/by-label/boot";
fsType = "ext4";
};
2024-10-27 16:28:20 +00:00
swapDevices = [
{ device = "/dev/disk/by-label/swap"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}