diff --git a/flake.nix b/flake.nix index 673815a..372c596 100644 --- a/flake.nix +++ b/flake.nix @@ -26,6 +26,7 @@ inherit pkgs; modules = [ ./citrus.nix + "${nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix" ./platforms/clementine.nix ]; }; diff --git a/platforms/clementine.nix b/platforms/clementine.nix index d238799..6ab6198 100644 --- a/platforms/clementine.nix +++ b/platforms/clementine.nix @@ -1,4 +1,12 @@ {pkgs, ...}: { networking.hostName = "clementine"; + virtualisation = { + forwardPorts = [ + { from = "host"; host.port = 2222; guest.port = 22; } + ]; + graphics = true; + qemu.options = [ "-bios" "${pkgs.OVMF.fd}/FV/OVMF.fd" ]; + }; + services.qemuGuest.enable = true; }