mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-07 06:12:58 +00:00
1590461887
- most nixos user only require time synchronisation, while ntpd implements a battery-included ntp server (1,215 LOCs of C-Code vs 64,302) - timesyncd support ntp server per interface (if configured through dhcp for instance) - timesyncd is already included in the systemd package, switching to it would save a little disk space (1,5M)
23 lines
680 B
Nix
23 lines
680 B
Nix
# Common configuration for Xen DomU NixOS virtual machines.
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
# We're being booted using pv-grub, which means that we need to
|
|
# generate a GRUB 1 menu without actually installing GRUB.
|
|
boot.loader.grub.version = 1;
|
|
boot.loader.grub.device = "nodev";
|
|
boot.loader.grub.extraPerEntryConfig = "root (hd0)";
|
|
|
|
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;
|
|
}
|