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
|
|
|
{
|
2023-01-05 03:08:45 +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";
|
2023-01-05 02:56:35 +00:00
|
|
|
options = [ "defaults" ];
|
2022-11-23 05:27:01 +00:00
|
|
|
};
|
2023-01-05 02:56:35 +00:00
|
|
|
|
|
|
|
fileSystems."/boot" = lib.mkOverride 2000 {
|
|
|
|
label = "boot";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
|
2023-01-05 03:08:45 +00:00
|
|
|
zramSwap.enable = true;
|
2023-01-05 02:56:35 +00:00
|
|
|
swapDevices = [{
|
|
|
|
label = "swap";
|
|
|
|
options = [ "defaults" ];
|
|
|
|
priority = 5;
|
|
|
|
}];
|
2022-11-23 05:27:01 +00:00
|
|
|
}
|