mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03: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;
|
|
}
|