22 lines
No EOL
614 B
Nix
22 lines
No EOL
614 B
Nix
{ config, lib, modulesPath, ... }:
|
|
|
|
let
|
|
# Import nodes
|
|
nodes = import ./../../nodes.nix;
|
|
myNode = nodes."${config.hostName}";
|
|
in
|
|
{
|
|
imports = [
|
|
(modulesPath + "/profiles/qemu-guest.nix")
|
|
(modulesPath + "/virtualisation/qemu-guest-agent.nix")
|
|
];
|
|
services.qemuGuest.enable = true;
|
|
|
|
fileSystems = myNode.fileSystems;
|
|
|
|
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ];
|
|
boot.loader.grub.enable = true;
|
|
boot.loader.grub.device = myNode.grubDevice;
|
|
|
|
nixpkgs.hostPlatform = lib.mkDefault myNode.system;
|
|
} |