1 { config, lib, pkgs, ... }:
7 imports = [ ../profiles/qemu-guest.nix ];
9 # Taken from /proc/cmdline of Ubuntu 20.04.2 LTS on OCI
11 "nvme.shutdown_timeout=10"
12 "nvme_core.shutdown_timeout=10"
13 "libiscsi.debug_libiscsi_eh=1"
14 "crash_kexec_post_notifiers"
23 "console=ttyAMA0,115200"
26 boot.growPartition = true;
29 device = "/dev/disk/by-label/nixos";
34 fileSystems."/boot" = lib.mkIf cfg.efi {
35 device = "/dev/disk/by-label/ESP";
39 boot.loader.efi.canTouchEfiVariables = false;
41 device = if cfg.efi then "nodev" else "/dev/sda";
44 serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1
45 terminal_input --append serial
46 terminal_output --append serial
48 efiInstallAsRemovable = cfg.efi;
52 # https://docs.oracle.com/en-us/iaas/Content/Compute/Tasks/configuringntpservice.htm#Configuring_the_Oracle_Cloud_Infrastructure_NTP_Service_for_an_Instance
53 networking.timeServers = [ "169.254.169.254" ];
55 services.openssh.enable = true;
57 # Otherwise the instance may not have a working network-online.target,
58 # making the fetch-ssh-keys.service fail
59 networking.useNetworkd = lib.mkDefault true;