system/nixos/hosts/canigou/hardware-configuration.nix

14 lines
428 B
Nix
Raw Normal View History

2023-03-02 13:09:07 +03:00
{ modulesPath, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.loader.grub.device = "/dev/sda";
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
boot.initrd.kernelModules = [ "nvme" ];
fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
swapDevices = [
{ device = "/dev/zram0"; }
{ device = "/var/swapfile"; size = 1536; }
];
2023-03-02 13:09:07 +03:00
}