Extract host type to host.nix

This commit is contained in:
2021-10-04 13:23:40 -07:00
parent 2551908093
commit 2ea4f6be5a
9 changed files with 201 additions and 197 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
with lib;
let
user = import ./types/user.nix { inherit lib; };
host = import ./types/host.nix { inherit lib; };
in {
options.instance = with types; {
@@ -37,7 +38,7 @@ in {
};
local-hosts = mkOption {
type = listOf str;
type = listOf (submodule host.hostOpts);
description = "List of hosts that should be considered local to the current host.";
};