diff options
Diffstat (limited to 'nixpkgs/nixos/modules/virtualisation/xen-domU.nix')
-rw-r--r-- | nixpkgs/nixos/modules/virtualisation/xen-domU.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nixpkgs/nixos/modules/virtualisation/xen-domU.nix b/nixpkgs/nixos/modules/virtualisation/xen-domU.nix new file mode 100644 index 000000000000..c00b984c2ce0 --- /dev/null +++ b/nixpkgs/nixos/modules/virtualisation/xen-domU.nix @@ -0,0 +1,19 @@ +# Common configuration for Xen DomU NixOS virtual machines. + +{ ... }: + +{ + boot.loader.grub.version = 2; + boot.loader.grub.device = "nodev"; + + boot.initrd.kernelModules = + [ "xen-blkfront" "xen-tpmfront" "xen-kbdfront" "xen-fbfront" + "xen-netfront" "xen-pcifront" "xen-scsifront" + ]; + + # Send syslog messages to the Xen console. + services.syslogd.tty = "hvc0"; + + # Don't run ntpd, since we should get the correct time from Dom0. + services.timesyncd.enable = false; +} |