summary refs log tree commit diff
path: root/modules/expose-vmvariant.nix
blob: ab1bad09aa4731cd832b0e435bdf5c86272bb380 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
    };
  };
}