mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-03 05:26:18 +01:00
8b700b61cc
Signed-off-by: main <magic_rb@redalder.org>
48 lines
1 KiB
Nix
48 lines
1 KiB
Nix
# SPDX-FileCopyrightText: 2022 Richard Brežák <richard@brezak.sk>
|
|
#
|
|
# SPDX-License-Identifier: LGPL-3.0-or-later
|
|
{lib, ...}:
|
|
with lib;
|
|
let
|
|
mkIpOption =
|
|
mkOption {
|
|
description = ''
|
|
Host IP
|
|
'';
|
|
type = types.str;
|
|
default = "";
|
|
};
|
|
mkNetworkOption =
|
|
mkOption {
|
|
description = ''
|
|
Network IPs
|
|
'';
|
|
type = types.str;
|
|
default = "";
|
|
};
|
|
in
|
|
{
|
|
options = {
|
|
network.ips = {
|
|
vault.dns = mkIpOption;
|
|
vault.vpn = mkIpOption;
|
|
blowhole.dns = mkIpOption;
|
|
blowhole.ip = mkIpOption;
|
|
blowhole.vpn = mkIpOption;
|
|
heater = mkIpOption;
|
|
edge.vpn = mkIpOption;
|
|
omen.vpn = mkIpOption;
|
|
toothpick = mkIpOption;
|
|
woodchip = mkIpOption;
|
|
media = mkIpOption;
|
|
};
|
|
|
|
network.networks = {
|
|
home.inner = mkNetworkOption;
|
|
home.outer = mkNetworkOption;
|
|
home.mine = mkNetworkOption;
|
|
vpn = mkNetworkOption;
|
|
};
|
|
};
|
|
}
|