vms: add support for nix configured virtual machines
Some checks failed
flake / flake (push) Failing after 42s

This commit is contained in:
Jake Hillion 2023-09-15 20:28:19 +01:00
parent 8cee990f54
commit 9b8fd11726
2 changed files with 22 additions and 0 deletions

View File

@ -14,6 +14,7 @@
./storj.nix ./storj.nix
./tailscale.nix ./tailscale.nix
./users.nix ./users.nix
./vms.nix
./www/global.nix ./www/global.nix
./www/www-repo.nix ./www/www-repo.nix
]; ];

21
modules/vms.nix Normal file
View File

@ -0,0 +1,21 @@
{ config, lib, ... }:
{
options = {
boot.isVirtualMachine = lib.mkOption {
type = lib.types.bool;
default = false;
description = lib.mdDoc ''
Whether this NixOS machine is a virtual machine running in another NixOS system.
'';
};
virtualMachines = lib.mkOption {
type = lib.types.attrsOf
(lib.types.submodule (
{ config, options, name, ... }:
{ }
))
};
};
}