reciproka-ops/hardware/linode_vm.nix
Fiscal Velvet Poet 35d48eb4a6
nix: rename nix.maxJobs
resolves #14
2023-05-02 11:28:11 +10:00

44 lines
896 B
Nix

# Configuration common to all JFDIC Linode VMs
{
config,
pkgs,
lib,
...
}: {
imports = [
# Import the NixOS Qemu guest settings
<nixpkgs/nixos/modules/profiles/qemu-guest.nix>
];
boot.initrd.availableKernelModules = ["virtio_pci" "ahci" "sd_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = [];
boot.extraModulePackages = [];
boot.kernelParams = ["console=ttyS0,19200n8"];
boot.loader = {
grub = {
extraConfig = ''
serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1;
terminal_input serial;
terminal_output serial
'';
device = "nodev";
};
timeout = 10;
};
# File systems configuration for the Linode VMs
fileSystems."/" = {
device = "/dev/sda";
fsType = "ext4";
};
swapDevices = [
{
device = "/dev/sdb";
}
];
nix.settings.max-jobs = lib.mkDefault 4;
}