clan-cli: get deploymentAddress from clan.networking

This commit is contained in:
lassulus
2023-09-14 16:57:38 +02:00
committed by Mic92
parent 0132abc547
commit 8d29d0e69c
4 changed files with 68 additions and 23 deletions

View File

@@ -3,6 +3,7 @@
imports = [
./secrets
./zerotier.nix
./networking.nix
inputs.sops-nix.nixosModules.sops
# just some example options. Can be removed later
./bloatware

View File

@@ -0,0 +1,15 @@
{ config, lib, ... }:
{
options.clan.networking = {
deploymentAddress = lib.mkOption {
description = ''
The target SSH node for deployment.
By default, the node's attribute name will be used.
If set to null, only local deployment will be supported.
'';
type = lib.types.nullOr lib.types.str;
default = "root@${config.networking.hostName}";
};
};
}