1# Common configuration for Xen DomU NixOS virtual machines.
2
3{ ... }:
4
5{
6 boot.loader.grub.device = "nodev";
7
8 boot.initrd.kernelModules =
9 [ "xen-blkfront" "xen-tpmfront" "xen-kbdfront" "xen-fbfront"
10 "xen-netfront" "xen-pcifront" "xen-scsifront"
11 ];
12
13 # Send syslog messages to the Xen console.
14 services.syslogd.tty = "hvc0";
15
16 # Don't run ntpd, since we should get the correct time from Dom0.
17 services.timesyncd.enable = false;
18}