1 { config, lib, pkgs, ... }:
4 imports = [ ../profiles/qemu-guest.nix ];
9 settings.PermitRootLogin = "prohibit-password";
10 settings.PasswordAuthentication = mkDefault false;
14 usePredictableInterfaceNames = false;
19 # Linode expects IPv6 privacy extensions to be disabled, so disable them
20 # See: https://www.linode.com/docs/guides/manual-network-configuration/#static-vs-dynamic-addressing
21 tempAddress = "disabled";
25 # Install diagnostic tools for Linode support
26 environment.systemPackages = with pkgs; [
38 swapDevices = mkDefault [{ device = "/dev/sdb"; }];
40 # Enable LISH and Linode Booting w/ GRUB
42 # Add Required Kernel Modules
43 # NOTE: These are not documented in the install guide
44 initrd.availableKernelModules = [
51 # Set Up LISH Serial Connection
52 kernelParams = [ "console=ttyS0,19200n8" ];
53 kernelModules = [ "virtio_net" ];
56 # Increase Timeout to Allow LISH Connection
57 # NOTE: The image generator tries to set a timeout of 0, so we must force
58 timeout = lib.mkForce 10;
65 # Allow serial connection for GRUB to be able to use LISH
67 serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1;
68 terminal_input serial;
69 terminal_output serial