summary refs log blame commit diff
path: root/nixos/modules/virtualisation/xen-domU.nix
blob: c00b984c2ce046caf2c50e1cdc65d224ca4257db (plain) (tree)
1
2
3
4
5
6
7
8

                                                           
        

 
                               
                                    
 



                                                                
 


                                            
                                                                   
                                    
 
# 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;
}