NixOS-Config/nixos/hosts/queen/hardware-configuration.nix

28 lines
641 B
Nix
Raw Normal View History

2023-11-21 15:05:37 +01:00
{
config,
lib,
pkgs,
modulesPath,
...
}: {
2023-11-21 14:55:19 +01:00
imports = [(modulesPath + "/profiles/qemu-guest.nix")];
boot.loader.grub.device = "/dev/sda";
boot.initrd.availableKernelModules = ["ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod"];
2023-11-21 14:55:19 +01:00
boot.initrd.kernelModules = ["nvme"];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
networking.useDHCP = lib.mkDefault true;
2023-11-21 14:55:19 +01:00
fileSystems."/" = {
device = "/dev/disk/by-uuid/dc10d09c-9394-4854-acd5-93ceccd2f448";
2023-11-21 14:55:19 +01:00
fsType = "ext4";
};
fileSystems."/nix/store" = {
device = "/nix/store";
fsType = "none";
options = ["bind"];
};
swapDevices = [];
2023-11-20 16:14:05 +01:00
}