cluster/lib: add per-host port magic
This commit is contained in:
parent
fc2944edf2
commit
b923e738e8
2 changed files with 12 additions and 0 deletions
|
@ -13,6 +13,7 @@ lib.evalModules {
|
|||
./lib/load-hosts.nix
|
||||
./lib/services.nix
|
||||
./lib/inject-nixos-config.nix
|
||||
./lib/port-magic-multi.nix
|
||||
|
||||
./import-services.nix
|
||||
];
|
||||
|
|
11
cluster/lib/port-magic-multi.nix
Normal file
11
cluster/lib/port-magic-multi.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
{
|
||||
options.hostLinks = mkOption {
|
||||
type = types.attrsOf (types.attrsOf (types.submodule ../../modules/port-magic/link.nix));
|
||||
description = "Port Magic links, per host.";
|
||||
default = {};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue