Compare commits

...

1 Commits
main ... vms

Author SHA1 Message Date
9b8fd11726 vms: add support for nix configured virtual machines
Some checks failed
flake / flake (push) Failing after 42s
2024-04-11 08:57:40 +01:00
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, ... }:
{ }
))
};
};
}