From 52b0f08558fbeabc93c75b35ab3f29f270df6012 Mon Sep 17 00:00:00 2001 From: Louis Bettens Date: Fri, 5 Aug 2022 17:37:44 +0200 Subject: [PATCH] add checks --- checks/declarative-management.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/checks/declarative-management.nix b/checks/declarative-management.nix index 0f03088..21d9027 100644 --- a/checks/declarative-management.nix +++ b/checks/declarative-management.nix @@ -19,6 +19,18 @@ let system.stateVersion = "22.05"; }; + miniguests.virtual-machine-with-virtio.configuration = { + boot.miniguest.enable = true; + boot.miniguest.qemu.fsType = "virtiofs"; + + fileSystems."/" = { + device = "none"; + fsType = "tmpfs"; + options = [ "defaults" "mode=755" ]; + }; + + system.stateVersion = "22.05"; + }; miniguests.container.configuration = { boot.miniguest.enable = true; boot.miniguest.guestType = "lxc"; @@ -37,6 +49,7 @@ let self.nixosModules.declarative { boot.isContainer = true; + miniguests.virtual-machine.system = "i686-linux"; miniguests.virtual-machine.configuration = { boot.miniguest.enable = true; @@ -48,6 +61,19 @@ let system.stateVersion = "22.05"; }; + miniguests.virtual-machine-with-virtio.system = "i686-linux"; + miniguests.virtual-machine-with-virtio.configuration = { + boot.miniguest.enable = true; + boot.miniguest.qemu.fsType = "virtiofs"; + + fileSystems."/" = { + device = "none"; + fsType = "tmpfs"; + options = [ "defaults" "mode=755" ]; + }; + + system.stateVersion = "22.05"; + }; miniguests.container.system = "i686-linux"; miniguests.container.configuration = { boot.miniguest.enable = true;