refactor: don't include the whole modules
All checks were successful
/ check (push) Successful in 8s
/ check-renovaterc (push) Successful in 2s
/ build-packages (push) Successful in 14s
/ build-vm (push) Successful in 1s
/ report-size (push) Successful in 4s

Instead only import the nixos/hm/nixvim module.

This _should_ reduce rebuilds.
This commit is contained in:
Jalil David Salamé Messina 2025-03-21 16:21:13 +01:00
parent 5359f13621
commit c1309a5d43
Signed by: jalil
GPG key ID: F016B9E770737A0B
6 changed files with 78 additions and 87 deletions

34
example-vm/vm-config.nix Normal file
View file

@ -0,0 +1,34 @@
## Default QEMU guest config
{
services = {
qemuGuest.enable = true;
openssh.enable = true;
};
boot = {
loader.systemd-boot.enable = true;
initrd.availableKernelModules = [
"xhci_pci"
"ehci_pci"
"ahci"
"usbhid"
"usb_storage"
"sd_mod"
"virtio_balloon"
"virtio_blk"
"virtio_pci"
"virtio_ring"
# "virtio_vga"
"virtio_gpu"
];
};
fileSystems."/".device = "/dev/disk/by-label/nixos";
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "24.11"; # Did you read the comment?
}