summary refs log tree commit diff
path: root/modules/expose-vmvariant.nix
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-01-23 13:27:59 +0100
committerRory& <root@rory.gay>2026-01-23 13:27:59 +0100
commit20b74076898028eeb26e7496c942ae12e464e8cc (patch)
tree2db8dfdaf71e6b1ba19617807b57878386e6fba3 /modules/expose-vmvariant.nix
downloadSpacebarContainerRepro-master.tar.xz
initial commit HEAD master
Diffstat (limited to 'modules/expose-vmvariant.nix')
-rwxr-xr-xmodules/expose-vmvariant.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/modules/expose-vmvariant.nix b/modules/expose-vmvariant.nix
new file mode 100755

index 0000000..ab1bad0 --- /dev/null +++ b/modules/expose-vmvariant.nix
@@ -0,0 +1,22 @@ +{ + pkgs, + lib, + config, + ... +}: + +{ + options.virtualisation = { + isVmVariant = lib.mkOption { + default = false; + example = true; + description = "Whether this build is a VM build."; + type = lib.types.bool; + }; + }; + config = { + virtualisation.vmVariant = { + virtualisation.isVmVariant = true; + }; + }; +}