2023-05-09 13:54:45 +00:00
|
|
|
# Configuration common to all Reciproka Kolectiva Linode VMs
|
2021-10-07 02:13:48 +00:00
|
|
|
{
|
2022-08-15 07:32:25 +00:00
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
2021-10-07 02:13:48 +00:00
|
|
|
imports = [
|
|
|
|
# Import the NixOS Qemu guest settings
|
|
|
|
<nixpkgs/nixos/modules/profiles/qemu-guest.nix>
|
|
|
|
];
|
|
|
|
|
2022-08-15 07:32:25 +00:00
|
|
|
boot.initrd.availableKernelModules = ["virtio_pci" "ahci" "sd_mod"];
|
|
|
|
boot.initrd.kernelModules = [];
|
|
|
|
boot.kernelModules = [];
|
|
|
|
boot.extraModulePackages = [];
|
|
|
|
boot.kernelParams = ["console=ttyS0,19200n8"];
|
2021-10-07 02:13:48 +00:00
|
|
|
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
|
2022-08-15 07:32:25 +00:00
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/sda";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2021-10-07 02:13:48 +00:00
|
|
|
|
|
|
|
swapDevices = [
|
|
|
|
{
|
|
|
|
device = "/dev/sdb";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2023-05-02 01:28:11 +00:00
|
|
|
nix.settings.max-jobs = lib.mkDefault 4;
|
2021-10-07 02:13:48 +00:00
|
|
|
}
|