2026-01-10T08:44:29+01:00

This commit is contained in:
2026-01-10 08:44:29 +01:00

View File

@@ -2,12 +2,15 @@
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }:
{ config, pkgs, modulesPath, ... }:
{
# imports = [ ./hw.nix ];
# Import NixOS QEMU guest profile for optimal virtio support
imports = [
"${modulesPath}/profiles/qemu-guest.nix"
];
# boot.loader.grub.device = "/dev/vda";
# fileSystems."/" = {
@@ -20,8 +23,8 @@
"console=tty1"
];
# Enable virtio balloon driver for dynamic memory resizing
boot.kernelModules = [ "virtio_balloon" ];
# QEMU guest agent for VM management (memory stats, filesystem freeze, etc.)
services.qemuGuest.enable = true;
systemd.services."serial-getty@ttyS0" = {
enable = true;