vms: add support for nix configured virtual machines
Some checks failed
flake / flake (push) Failing after 42s
Some checks failed
flake / flake (push) Failing after 42s
This commit is contained in:
parent
8cee990f54
commit
9b8fd11726
@ -14,6 +14,7 @@
|
||||
./storj.nix
|
||||
./tailscale.nix
|
||||
./users.nix
|
||||
./vms.nix
|
||||
./www/global.nix
|
||||
./www/www-repo.nix
|
||||
];
|
||||
|
21
modules/vms.nix
Normal file
21
modules/vms.nix
Normal 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, ... }:
|
||||
{ }
|
||||
))
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user