1# Common configuration for Xen DomU NixOS virtual machines. 2 3{ config, pkgs, ... }: 4 5{ 6 # We're being booted using pv-grub, which means that we need to 7 # generate a GRUB 1 menu without actually installing GRUB. 8 boot.loader.grub.version = 1; 9 boot.loader.grub.device = "nodev"; 10 boot.loader.grub.extraPerEntryConfig = "root (hd0)"; 11 12 boot.initrd.kernelModules = 13 [ "xen-blkfront" "xen-tpmfront" "xen-kbdfront" "xen-fbfront" 14 "xen-netfront" "xen-pcifront" "xen-scsifront" 15 ]; 16 17 # Send syslog messages to the Xen console. 18 services.syslogd.tty = "hvc0"; 19 20 # Don't run ntpd, since we should get the correct time from Dom0. 21 services.ntp.enable = false; 22}