From 82031d248071ba8597cfbc7f97dc75f7a130f27e Mon Sep 17 00:00:00 2001 From: Devin Finlinson Date: Tue, 15 Apr 2025 04:03:53 -0600 Subject: one step closer to declarative vms --- machines/doretta/default.nix | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'machines/doretta/default.nix') diff --git a/machines/doretta/default.nix b/machines/doretta/default.nix index 2b79a99..d673851 100644 --- a/machines/doretta/default.nix +++ b/machines/doretta/default.nix @@ -2,7 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running `nixos-help`). -{ config, pkgs, ... }: +{ microvm, config, pkgs, ... }: { imports = @@ -13,6 +13,7 @@ ../../modules/nixos/environment.nix ../../modules/nixos/tailscale.nix ../../modules/nixos/system-packages.nix + microvm.host ../../modules/users/defin.nix ../../modules/users/git.nix @@ -33,6 +34,19 @@ }; programs.virt-manager.enable = true; + microvm.vms = { + microvm-test = { + config = { + microvm.shares = [{ + source = "/nix/store"; + mountPoint = "/nix/.ro-store"; + tag = "ro-store"; + proto = "virtiofs"; + }]; + }; + }; + }; + # Set your time zone. time.timeZone = "US/Mountain"; -- cgit v1.2.3