2019-07-02 01:52:10 +00:00
|
|
|
# Configuration common to all my 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 = [ ];
|
2019-07-03 12:46:23 +00:00
|
|
|
boot.kernelParams = [ "console=ttyS0,19200n8" ];
|
2019-07-02 01:52:10 +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
|
2021-11-16 04:57:23 +00:00
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/sda";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
2019-07-02 01:52:10 +00:00
|
|
|
|
2021-11-16 04:57:23 +00:00
|
|
|
swapDevices = [{ device = "/dev/sdb"; }];
|
2019-07-02 01:52:10 +00:00
|
|
|
|
|
|
|
nix.maxJobs = lib.mkDefault 4;
|
|
|
|
}
|