mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 06:05:13 +00:00
3dad33227f
fix #22709 Recent pvgrub (from Grub built with “--with-platform=xen”) understands the Grub2 configuration format. Grub legacy configuration (menu.lst) is ignored.
20 lines
498 B
Nix
20 lines
498 B
Nix
# Common configuration for Xen DomU NixOS virtual machines.
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
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;
|
|
}
|