reciproka-ops/hardware/linode_vm.nix
Fiscal Velvet Poet c3823d0cfb
Correct grammar in the collective's name
You know that moment when you're learning a languaged and getting the
grammar all wrong? No? Niether do I.

resolves #6
2024-01-10 01:28:40 +10:00

45 lines
920 B
Nix

# Configuration common to all Reciproka Kolektivo Linode VMs
{
config,
pkgs,
lib,
modulesPath,
...
}: {
imports = [
# Import the NixOS Qemu guest settings
(modulesPath + "/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;
}