nixos-config/hosts/plover/hardware-configuration.nix

34 lines
851 B
Nix
Raw Normal View History

2022-11-23 05:27:01 +00:00
{ lib, pkgs, modulesPath, ... }:
2022-11-25 13:27:23 +00:00
# Most of the filesystems listed here are supposed to be overriden to default
# settings of whatever image format configuration this host system will import
# from nixos-generators.
2022-11-23 05:27:01 +00:00
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(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" ];
2022-11-25 13:27:23 +00:00
fileSystems."/" = lib.mkOverride 2000 {
2022-11-23 05:27:01 +00:00
label = "nixos";
fsType = "ext4";
options = [ "defaults" ];
2022-11-23 05:27:01 +00:00
};
fileSystems."/boot" = lib.mkOverride 2000 {
label = "boot";
fsType = "vfat";
};
zramSwap.enable = true;
swapDevices = [{
label = "swap";
options = [ "defaults" ];
priority = 5;
}];
2022-11-23 05:27:01 +00:00
}