You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

143 lines
5.5 KiB
Nix

1 year ago
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
{ config, lib, ... }@inputs:
Squashed commit of the following: commit 014fa13262f264d61de6ae5cd49b67bc02c25bd0 Author: Tilmann Meyer <me@atiltedtree.dev> Date: Sun Mar 24 23:09:00 2024 +0100 Fixed persistent keepalive for networkd configurer commit 37453982ab4c65848c9849aec54806b829072e91 Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:08:06 2024 -0400 update flake commit 68a0496bc7fa0770427d22bd25c6910b9144e9ab Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:07:59 2024 -0400 Update tests to use `subnets` in all connections commit 8c7f741b7f0549387abd96482010bc06b731a55c Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:07:31 2024 -0400 Add error message to parser for incorrectly configured subnets in connections commit 3e3a37fc0f5b232da4c4744d81981d68ccd93ffc Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:05:27 2024 -0400 Update disjoint test commit 1236e4e8f27c22e3e9d936dbbdcb1913b26b8c9c Author: Adam Stephens <adam@valkor.net> Date: Sun Mar 24 20:59:26 2024 -0400 Add disjointed meshes tests commit dadd5bf7205eddb0a17330426bcabdccd6923615 Author: Matthew Salerno <m@salernosection.com> Date: Wed Dec 13 22:01:16 2023 -0500 add tags to agenix-rekey provider commit 1d3184639a5a83f0633f2908cd3b66293a24d1d8 Author: Matthew Salerno <m@salernosection.com> Date: Mon Dec 11 22:09:45 2023 -0500 sneaky systemd issues with dev only commit c8fb5affe5802c133abe10a51b228bfd76e03147 Author: Matthew Salerno <m@salernosection.com> Date: Tue Dec 5 20:51:30 2023 -0500 wnlib is back commit 1e697eb859788c592a5e3606086180b72fd1e9f1 Author: Matthew Salerno <m@salernosection.com> Date: Sat Nov 11 22:09:26 2023 -0500 allow multiple devs for same subnet commit 45b70c90636eee57d49ebac348e345912be226da Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 18 16:04:49 2023 -0400 added manual ip tests and resulting fixes commit 3d49ebff29894fe58de97a07a02035bd6d9a2752 Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 18 11:49:58 2023 -0400 Added manual IP assignment tests commit bd52d85d2dc56b0933d958aa3ef4faa3113e356c Author: Matthew Salerno <m@salernosection.com> Date: Thu Sep 14 16:08:00 2023 -0400 Generalized ip assignment to take cidr or IP commit fd2b9ce77cf1492463413e8bc0a9797226f9ddd0 Author: Matthew Salerno <m@salernosection.com> Date: Thu Sep 14 13:50:11 2023 -0400 Generalized ip assignment to take cidr or IP commit 57f8e0e97463dec3e0da7f4b995ee89b92d36687 Author: Matthew Salerno <m@salernosection.com> Date: Wed Sep 13 18:38:42 2023 -0400 Fixed manual ipv4 assignment issue commit a24fffa753745d1d6285ae588ff29b374ea1f8d2 Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 11 13:44:11 2023 -0400 Update README.md with link to self commit dd9de47a84060004ec9c76ceb7e7ee4086438f73 Author: Matthew Salerno <m@salernosection.com> Date: Sat Sep 2 19:55:17 2023 -0400 fixed missing link commit e761330e9189d194018ec2e3bd314d015b3f5f38 Merge: bb8636d b658653 Author: Matthew Salerno <m@salernosection.com> Date: Sat Sep 2 19:54:29 2023 -0400 fixed missing link commit bb8636dd8d5841747cdb7e8da171aeb44534e4a6 Author: Matthew Salerno <m@salernosection.com> Date: Thu Aug 31 20:45:14 2023 -0400 Readme moved to wiki commit 86e300428b905843129d2785d01fdf4313334b93 Author: Matthew Salerno <m@salernosection.com> Date: Tue Aug 22 21:07:34 2023 -0400 Fixed a bug in allGroupEndpoints logic commit 9a5c773355c571b6dc005dd70b083775b00f106d Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 22:03:19 2023 -0400 oops, delete net.nix commit b97760e456dc471e33bab3844ab9d3dbd5cc5a73 Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:59:30 2023 -0400 fixup additional_ settings commit 753c0726630304113e5a6af75d97b4fcf0b45a90 Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:30:40 2023 -0400 change null test to test enable = false commit 690e13e902ef6515946baf882a470f00b54adefa Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:28:29 2023 -0400 add mailing list to readme
7 months ago
let wnlib = import ./lib.nix {inherit lib;}; in
with wnlib;
with lib;
let
cfg = config.wirenix;
parsers = defaultParsers // cfg.additionalParsers;
configurers = defaultConfigurers // cfg.additionalConfigurers;
availableKeyProviders = defaultKeyProviders // cfg.additionalKeyProviders;
acl = cfg.aclConfig;
parser = parsers."${acl.version}" inputs;
Squashed commit of the following: commit 014fa13262f264d61de6ae5cd49b67bc02c25bd0 Author: Tilmann Meyer <me@atiltedtree.dev> Date: Sun Mar 24 23:09:00 2024 +0100 Fixed persistent keepalive for networkd configurer commit 37453982ab4c65848c9849aec54806b829072e91 Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:08:06 2024 -0400 update flake commit 68a0496bc7fa0770427d22bd25c6910b9144e9ab Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:07:59 2024 -0400 Update tests to use `subnets` in all connections commit 8c7f741b7f0549387abd96482010bc06b731a55c Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:07:31 2024 -0400 Add error message to parser for incorrectly configured subnets in connections commit 3e3a37fc0f5b232da4c4744d81981d68ccd93ffc Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:05:27 2024 -0400 Update disjoint test commit 1236e4e8f27c22e3e9d936dbbdcb1913b26b8c9c Author: Adam Stephens <adam@valkor.net> Date: Sun Mar 24 20:59:26 2024 -0400 Add disjointed meshes tests commit dadd5bf7205eddb0a17330426bcabdccd6923615 Author: Matthew Salerno <m@salernosection.com> Date: Wed Dec 13 22:01:16 2023 -0500 add tags to agenix-rekey provider commit 1d3184639a5a83f0633f2908cd3b66293a24d1d8 Author: Matthew Salerno <m@salernosection.com> Date: Mon Dec 11 22:09:45 2023 -0500 sneaky systemd issues with dev only commit c8fb5affe5802c133abe10a51b228bfd76e03147 Author: Matthew Salerno <m@salernosection.com> Date: Tue Dec 5 20:51:30 2023 -0500 wnlib is back commit 1e697eb859788c592a5e3606086180b72fd1e9f1 Author: Matthew Salerno <m@salernosection.com> Date: Sat Nov 11 22:09:26 2023 -0500 allow multiple devs for same subnet commit 45b70c90636eee57d49ebac348e345912be226da Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 18 16:04:49 2023 -0400 added manual ip tests and resulting fixes commit 3d49ebff29894fe58de97a07a02035bd6d9a2752 Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 18 11:49:58 2023 -0400 Added manual IP assignment tests commit bd52d85d2dc56b0933d958aa3ef4faa3113e356c Author: Matthew Salerno <m@salernosection.com> Date: Thu Sep 14 16:08:00 2023 -0400 Generalized ip assignment to take cidr or IP commit fd2b9ce77cf1492463413e8bc0a9797226f9ddd0 Author: Matthew Salerno <m@salernosection.com> Date: Thu Sep 14 13:50:11 2023 -0400 Generalized ip assignment to take cidr or IP commit 57f8e0e97463dec3e0da7f4b995ee89b92d36687 Author: Matthew Salerno <m@salernosection.com> Date: Wed Sep 13 18:38:42 2023 -0400 Fixed manual ipv4 assignment issue commit a24fffa753745d1d6285ae588ff29b374ea1f8d2 Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 11 13:44:11 2023 -0400 Update README.md with link to self commit dd9de47a84060004ec9c76ceb7e7ee4086438f73 Author: Matthew Salerno <m@salernosection.com> Date: Sat Sep 2 19:55:17 2023 -0400 fixed missing link commit e761330e9189d194018ec2e3bd314d015b3f5f38 Merge: bb8636d b658653 Author: Matthew Salerno <m@salernosection.com> Date: Sat Sep 2 19:54:29 2023 -0400 fixed missing link commit bb8636dd8d5841747cdb7e8da171aeb44534e4a6 Author: Matthew Salerno <m@salernosection.com> Date: Thu Aug 31 20:45:14 2023 -0400 Readme moved to wiki commit 86e300428b905843129d2785d01fdf4313334b93 Author: Matthew Salerno <m@salernosection.com> Date: Tue Aug 22 21:07:34 2023 -0400 Fixed a bug in allGroupEndpoints logic commit 9a5c773355c571b6dc005dd70b083775b00f106d Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 22:03:19 2023 -0400 oops, delete net.nix commit b97760e456dc471e33bab3844ab9d3dbd5cc5a73 Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:59:30 2023 -0400 fixup additional_ settings commit 753c0726630304113e5a6af75d97b4fcf0b45a90 Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:30:40 2023 -0400 change null test to test enable = false commit 690e13e902ef6515946baf882a470f00b54adefa Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:28:29 2023 -0400 add mailing list to readme
7 months ago
configurer = (getAttr cfg.configurer configurers) (inputs//{devNameMethod = cfg.devNameMethod;}); #config.wirenix.configurer inputs;
keyProviders = map (providerName: getAttr providerName availableKeyProviders) cfg.keyProviders; # config.wirenix.keyProviders;
Squashed commit of the following: commit 014fa13262f264d61de6ae5cd49b67bc02c25bd0 Author: Tilmann Meyer <me@atiltedtree.dev> Date: Sun Mar 24 23:09:00 2024 +0100 Fixed persistent keepalive for networkd configurer commit 37453982ab4c65848c9849aec54806b829072e91 Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:08:06 2024 -0400 update flake commit 68a0496bc7fa0770427d22bd25c6910b9144e9ab Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:07:59 2024 -0400 Update tests to use `subnets` in all connections commit 8c7f741b7f0549387abd96482010bc06b731a55c Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:07:31 2024 -0400 Add error message to parser for incorrectly configured subnets in connections commit 3e3a37fc0f5b232da4c4744d81981d68ccd93ffc Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:05:27 2024 -0400 Update disjoint test commit 1236e4e8f27c22e3e9d936dbbdcb1913b26b8c9c Author: Adam Stephens <adam@valkor.net> Date: Sun Mar 24 20:59:26 2024 -0400 Add disjointed meshes tests commit dadd5bf7205eddb0a17330426bcabdccd6923615 Author: Matthew Salerno <m@salernosection.com> Date: Wed Dec 13 22:01:16 2023 -0500 add tags to agenix-rekey provider commit 1d3184639a5a83f0633f2908cd3b66293a24d1d8 Author: Matthew Salerno <m@salernosection.com> Date: Mon Dec 11 22:09:45 2023 -0500 sneaky systemd issues with dev only commit c8fb5affe5802c133abe10a51b228bfd76e03147 Author: Matthew Salerno <m@salernosection.com> Date: Tue Dec 5 20:51:30 2023 -0500 wnlib is back commit 1e697eb859788c592a5e3606086180b72fd1e9f1 Author: Matthew Salerno <m@salernosection.com> Date: Sat Nov 11 22:09:26 2023 -0500 allow multiple devs for same subnet commit 45b70c90636eee57d49ebac348e345912be226da Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 18 16:04:49 2023 -0400 added manual ip tests and resulting fixes commit 3d49ebff29894fe58de97a07a02035bd6d9a2752 Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 18 11:49:58 2023 -0400 Added manual IP assignment tests commit bd52d85d2dc56b0933d958aa3ef4faa3113e356c Author: Matthew Salerno <m@salernosection.com> Date: Thu Sep 14 16:08:00 2023 -0400 Generalized ip assignment to take cidr or IP commit fd2b9ce77cf1492463413e8bc0a9797226f9ddd0 Author: Matthew Salerno <m@salernosection.com> Date: Thu Sep 14 13:50:11 2023 -0400 Generalized ip assignment to take cidr or IP commit 57f8e0e97463dec3e0da7f4b995ee89b92d36687 Author: Matthew Salerno <m@salernosection.com> Date: Wed Sep 13 18:38:42 2023 -0400 Fixed manual ipv4 assignment issue commit a24fffa753745d1d6285ae588ff29b374ea1f8d2 Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 11 13:44:11 2023 -0400 Update README.md with link to self commit dd9de47a84060004ec9c76ceb7e7ee4086438f73 Author: Matthew Salerno <m@salernosection.com> Date: Sat Sep 2 19:55:17 2023 -0400 fixed missing link commit e761330e9189d194018ec2e3bd314d015b3f5f38 Merge: bb8636d b658653 Author: Matthew Salerno <m@salernosection.com> Date: Sat Sep 2 19:54:29 2023 -0400 fixed missing link commit bb8636dd8d5841747cdb7e8da171aeb44534e4a6 Author: Matthew Salerno <m@salernosection.com> Date: Thu Aug 31 20:45:14 2023 -0400 Readme moved to wiki commit 86e300428b905843129d2785d01fdf4313334b93 Author: Matthew Salerno <m@salernosection.com> Date: Tue Aug 22 21:07:34 2023 -0400 Fixed a bug in allGroupEndpoints logic commit 9a5c773355c571b6dc005dd70b083775b00f106d Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 22:03:19 2023 -0400 oops, delete net.nix commit b97760e456dc471e33bab3844ab9d3dbd5cc5a73 Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:59:30 2023 -0400 fixup additional_ settings commit 753c0726630304113e5a6af75d97b4fcf0b45a90 Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:30:40 2023 -0400 change null test to test enable = false commit 690e13e902ef6515946baf882a470f00b54adefa Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:28:29 2023 -0400 add mailing list to readme
7 months ago
mkMergeTopLevel = names: attrs: getAttrs names (
mapAttrs (k: v: mkMerge v) (foldAttrs (n: a: [n] ++ a) [] attrs)
);
/**
* We can merge if we want to
* We can leave your friends behind
* 'Cause your friends don't merge and if they don't merge
* Well they're, no friends of mine.
*/
safetyMerge = possibleTopLevelKeys: attrs:
Squashed commit of the following: commit 014fa13262f264d61de6ae5cd49b67bc02c25bd0 Author: Tilmann Meyer <me@atiltedtree.dev> Date: Sun Mar 24 23:09:00 2024 +0100 Fixed persistent keepalive for networkd configurer commit 37453982ab4c65848c9849aec54806b829072e91 Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:08:06 2024 -0400 update flake commit 68a0496bc7fa0770427d22bd25c6910b9144e9ab Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:07:59 2024 -0400 Update tests to use `subnets` in all connections commit 8c7f741b7f0549387abd96482010bc06b731a55c Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:07:31 2024 -0400 Add error message to parser for incorrectly configured subnets in connections commit 3e3a37fc0f5b232da4c4744d81981d68ccd93ffc Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:05:27 2024 -0400 Update disjoint test commit 1236e4e8f27c22e3e9d936dbbdcb1913b26b8c9c Author: Adam Stephens <adam@valkor.net> Date: Sun Mar 24 20:59:26 2024 -0400 Add disjointed meshes tests commit dadd5bf7205eddb0a17330426bcabdccd6923615 Author: Matthew Salerno <m@salernosection.com> Date: Wed Dec 13 22:01:16 2023 -0500 add tags to agenix-rekey provider commit 1d3184639a5a83f0633f2908cd3b66293a24d1d8 Author: Matthew Salerno <m@salernosection.com> Date: Mon Dec 11 22:09:45 2023 -0500 sneaky systemd issues with dev only commit c8fb5affe5802c133abe10a51b228bfd76e03147 Author: Matthew Salerno <m@salernosection.com> Date: Tue Dec 5 20:51:30 2023 -0500 wnlib is back commit 1e697eb859788c592a5e3606086180b72fd1e9f1 Author: Matthew Salerno <m@salernosection.com> Date: Sat Nov 11 22:09:26 2023 -0500 allow multiple devs for same subnet commit 45b70c90636eee57d49ebac348e345912be226da Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 18 16:04:49 2023 -0400 added manual ip tests and resulting fixes commit 3d49ebff29894fe58de97a07a02035bd6d9a2752 Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 18 11:49:58 2023 -0400 Added manual IP assignment tests commit bd52d85d2dc56b0933d958aa3ef4faa3113e356c Author: Matthew Salerno <m@salernosection.com> Date: Thu Sep 14 16:08:00 2023 -0400 Generalized ip assignment to take cidr or IP commit fd2b9ce77cf1492463413e8bc0a9797226f9ddd0 Author: Matthew Salerno <m@salernosection.com> Date: Thu Sep 14 13:50:11 2023 -0400 Generalized ip assignment to take cidr or IP commit 57f8e0e97463dec3e0da7f4b995ee89b92d36687 Author: Matthew Salerno <m@salernosection.com> Date: Wed Sep 13 18:38:42 2023 -0400 Fixed manual ipv4 assignment issue commit a24fffa753745d1d6285ae588ff29b374ea1f8d2 Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 11 13:44:11 2023 -0400 Update README.md with link to self commit dd9de47a84060004ec9c76ceb7e7ee4086438f73 Author: Matthew Salerno <m@salernosection.com> Date: Sat Sep 2 19:55:17 2023 -0400 fixed missing link commit e761330e9189d194018ec2e3bd314d015b3f5f38 Merge: bb8636d b658653 Author: Matthew Salerno <m@salernosection.com> Date: Sat Sep 2 19:54:29 2023 -0400 fixed missing link commit bb8636dd8d5841747cdb7e8da171aeb44534e4a6 Author: Matthew Salerno <m@salernosection.com> Date: Thu Aug 31 20:45:14 2023 -0400 Readme moved to wiki commit 86e300428b905843129d2785d01fdf4313334b93 Author: Matthew Salerno <m@salernosection.com> Date: Tue Aug 22 21:07:34 2023 -0400 Fixed a bug in allGroupEndpoints logic commit 9a5c773355c571b6dc005dd70b083775b00f106d Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 22:03:19 2023 -0400 oops, delete net.nix commit b97760e456dc471e33bab3844ab9d3dbd5cc5a73 Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:59:30 2023 -0400 fixup additional_ settings commit 753c0726630304113e5a6af75d97b4fcf0b45a90 Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:30:40 2023 -0400 change null test to test enable = false commit 690e13e902ef6515946baf882a470f00b54adefa Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:28:29 2023 -0400 add mailing list to readme
7 months ago
(mkMergeTopLevel possibleTopLevelKeys ((singleton (genAttrs possibleTopLevelKeys (name: {})))++attrs));
in
{
options = {
1 year ago
age = {};
sops = {};
wirenix = {
enable = mkEnableOption "wirenix";
peerName = mkOption {
Squashed commit of the following: commit 014fa13262f264d61de6ae5cd49b67bc02c25bd0 Author: Tilmann Meyer <me@atiltedtree.dev> Date: Sun Mar 24 23:09:00 2024 +0100 Fixed persistent keepalive for networkd configurer commit 37453982ab4c65848c9849aec54806b829072e91 Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:08:06 2024 -0400 update flake commit 68a0496bc7fa0770427d22bd25c6910b9144e9ab Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:07:59 2024 -0400 Update tests to use `subnets` in all connections commit 8c7f741b7f0549387abd96482010bc06b731a55c Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:07:31 2024 -0400 Add error message to parser for incorrectly configured subnets in connections commit 3e3a37fc0f5b232da4c4744d81981d68ccd93ffc Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:05:27 2024 -0400 Update disjoint test commit 1236e4e8f27c22e3e9d936dbbdcb1913b26b8c9c Author: Adam Stephens <adam@valkor.net> Date: Sun Mar 24 20:59:26 2024 -0400 Add disjointed meshes tests commit dadd5bf7205eddb0a17330426bcabdccd6923615 Author: Matthew Salerno <m@salernosection.com> Date: Wed Dec 13 22:01:16 2023 -0500 add tags to agenix-rekey provider commit 1d3184639a5a83f0633f2908cd3b66293a24d1d8 Author: Matthew Salerno <m@salernosection.com> Date: Mon Dec 11 22:09:45 2023 -0500 sneaky systemd issues with dev only commit c8fb5affe5802c133abe10a51b228bfd76e03147 Author: Matthew Salerno <m@salernosection.com> Date: Tue Dec 5 20:51:30 2023 -0500 wnlib is back commit 1e697eb859788c592a5e3606086180b72fd1e9f1 Author: Matthew Salerno <m@salernosection.com> Date: Sat Nov 11 22:09:26 2023 -0500 allow multiple devs for same subnet commit 45b70c90636eee57d49ebac348e345912be226da Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 18 16:04:49 2023 -0400 added manual ip tests and resulting fixes commit 3d49ebff29894fe58de97a07a02035bd6d9a2752 Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 18 11:49:58 2023 -0400 Added manual IP assignment tests commit bd52d85d2dc56b0933d958aa3ef4faa3113e356c Author: Matthew Salerno <m@salernosection.com> Date: Thu Sep 14 16:08:00 2023 -0400 Generalized ip assignment to take cidr or IP commit fd2b9ce77cf1492463413e8bc0a9797226f9ddd0 Author: Matthew Salerno <m@salernosection.com> Date: Thu Sep 14 13:50:11 2023 -0400 Generalized ip assignment to take cidr or IP commit 57f8e0e97463dec3e0da7f4b995ee89b92d36687 Author: Matthew Salerno <m@salernosection.com> Date: Wed Sep 13 18:38:42 2023 -0400 Fixed manual ipv4 assignment issue commit a24fffa753745d1d6285ae588ff29b374ea1f8d2 Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 11 13:44:11 2023 -0400 Update README.md with link to self commit dd9de47a84060004ec9c76ceb7e7ee4086438f73 Author: Matthew Salerno <m@salernosection.com> Date: Sat Sep 2 19:55:17 2023 -0400 fixed missing link commit e761330e9189d194018ec2e3bd314d015b3f5f38 Merge: bb8636d b658653 Author: Matthew Salerno <m@salernosection.com> Date: Sat Sep 2 19:54:29 2023 -0400 fixed missing link commit bb8636dd8d5841747cdb7e8da171aeb44534e4a6 Author: Matthew Salerno <m@salernosection.com> Date: Thu Aug 31 20:45:14 2023 -0400 Readme moved to wiki commit 86e300428b905843129d2785d01fdf4313334b93 Author: Matthew Salerno <m@salernosection.com> Date: Tue Aug 22 21:07:34 2023 -0400 Fixed a bug in allGroupEndpoints logic commit 9a5c773355c571b6dc005dd70b083775b00f106d Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 22:03:19 2023 -0400 oops, delete net.nix commit b97760e456dc471e33bab3844ab9d3dbd5cc5a73 Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:59:30 2023 -0400 fixup additional_ settings commit 753c0726630304113e5a6af75d97b4fcf0b45a90 Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:30:40 2023 -0400 change null test to test enable = false commit 690e13e902ef6515946baf882a470f00b54adefa Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:28:29 2023 -0400 add mailing list to readme
7 months ago
default = config.system.name;
defaultText = literalExpression "config.system.name";
example = "bernd";
Squashed commit of the following: commit 014fa13262f264d61de6ae5cd49b67bc02c25bd0 Author: Tilmann Meyer <me@atiltedtree.dev> Date: Sun Mar 24 23:09:00 2024 +0100 Fixed persistent keepalive for networkd configurer commit 37453982ab4c65848c9849aec54806b829072e91 Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:08:06 2024 -0400 update flake commit 68a0496bc7fa0770427d22bd25c6910b9144e9ab Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:07:59 2024 -0400 Update tests to use `subnets` in all connections commit 8c7f741b7f0549387abd96482010bc06b731a55c Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:07:31 2024 -0400 Add error message to parser for incorrectly configured subnets in connections commit 3e3a37fc0f5b232da4c4744d81981d68ccd93ffc Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:05:27 2024 -0400 Update disjoint test commit 1236e4e8f27c22e3e9d936dbbdcb1913b26b8c9c Author: Adam Stephens <adam@valkor.net> Date: Sun Mar 24 20:59:26 2024 -0400 Add disjointed meshes tests commit dadd5bf7205eddb0a17330426bcabdccd6923615 Author: Matthew Salerno <m@salernosection.com> Date: Wed Dec 13 22:01:16 2023 -0500 add tags to agenix-rekey provider commit 1d3184639a5a83f0633f2908cd3b66293a24d1d8 Author: Matthew Salerno <m@salernosection.com> Date: Mon Dec 11 22:09:45 2023 -0500 sneaky systemd issues with dev only commit c8fb5affe5802c133abe10a51b228bfd76e03147 Author: Matthew Salerno <m@salernosection.com> Date: Tue Dec 5 20:51:30 2023 -0500 wnlib is back commit 1e697eb859788c592a5e3606086180b72fd1e9f1 Author: Matthew Salerno <m@salernosection.com> Date: Sat Nov 11 22:09:26 2023 -0500 allow multiple devs for same subnet commit 45b70c90636eee57d49ebac348e345912be226da Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 18 16:04:49 2023 -0400 added manual ip tests and resulting fixes commit 3d49ebff29894fe58de97a07a02035bd6d9a2752 Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 18 11:49:58 2023 -0400 Added manual IP assignment tests commit bd52d85d2dc56b0933d958aa3ef4faa3113e356c Author: Matthew Salerno <m@salernosection.com> Date: Thu Sep 14 16:08:00 2023 -0400 Generalized ip assignment to take cidr or IP commit fd2b9ce77cf1492463413e8bc0a9797226f9ddd0 Author: Matthew Salerno <m@salernosection.com> Date: Thu Sep 14 13:50:11 2023 -0400 Generalized ip assignment to take cidr or IP commit 57f8e0e97463dec3e0da7f4b995ee89b92d36687 Author: Matthew Salerno <m@salernosection.com> Date: Wed Sep 13 18:38:42 2023 -0400 Fixed manual ipv4 assignment issue commit a24fffa753745d1d6285ae588ff29b374ea1f8d2 Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 11 13:44:11 2023 -0400 Update README.md with link to self commit dd9de47a84060004ec9c76ceb7e7ee4086438f73 Author: Matthew Salerno <m@salernosection.com> Date: Sat Sep 2 19:55:17 2023 -0400 fixed missing link commit e761330e9189d194018ec2e3bd314d015b3f5f38 Merge: bb8636d b658653 Author: Matthew Salerno <m@salernosection.com> Date: Sat Sep 2 19:54:29 2023 -0400 fixed missing link commit bb8636dd8d5841747cdb7e8da171aeb44534e4a6 Author: Matthew Salerno <m@salernosection.com> Date: Thu Aug 31 20:45:14 2023 -0400 Readme moved to wiki commit 86e300428b905843129d2785d01fdf4313334b93 Author: Matthew Salerno <m@salernosection.com> Date: Tue Aug 22 21:07:34 2023 -0400 Fixed a bug in allGroupEndpoints logic commit 9a5c773355c571b6dc005dd70b083775b00f106d Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 22:03:19 2023 -0400 oops, delete net.nix commit b97760e456dc471e33bab3844ab9d3dbd5cc5a73 Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:59:30 2023 -0400 fixup additional_ settings commit 753c0726630304113e5a6af75d97b4fcf0b45a90 Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:30:40 2023 -0400 change null test to test enable = false commit 690e13e902ef6515946baf882a470f00b54adefa Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:28:29 2023 -0400 add mailing list to readme
7 months ago
type = with types; str;
description = mdDoc ''
Name of the peer using this module, to match the name in
`wirenix.config.peers.*.name`
'';
};
Squashed commit of the following: commit 014fa13262f264d61de6ae5cd49b67bc02c25bd0 Author: Tilmann Meyer <me@atiltedtree.dev> Date: Sun Mar 24 23:09:00 2024 +0100 Fixed persistent keepalive for networkd configurer commit 37453982ab4c65848c9849aec54806b829072e91 Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:08:06 2024 -0400 update flake commit 68a0496bc7fa0770427d22bd25c6910b9144e9ab Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:07:59 2024 -0400 Update tests to use `subnets` in all connections commit 8c7f741b7f0549387abd96482010bc06b731a55c Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:07:31 2024 -0400 Add error message to parser for incorrectly configured subnets in connections commit 3e3a37fc0f5b232da4c4744d81981d68ccd93ffc Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:05:27 2024 -0400 Update disjoint test commit 1236e4e8f27c22e3e9d936dbbdcb1913b26b8c9c Author: Adam Stephens <adam@valkor.net> Date: Sun Mar 24 20:59:26 2024 -0400 Add disjointed meshes tests commit dadd5bf7205eddb0a17330426bcabdccd6923615 Author: Matthew Salerno <m@salernosection.com> Date: Wed Dec 13 22:01:16 2023 -0500 add tags to agenix-rekey provider commit 1d3184639a5a83f0633f2908cd3b66293a24d1d8 Author: Matthew Salerno <m@salernosection.com> Date: Mon Dec 11 22:09:45 2023 -0500 sneaky systemd issues with dev only commit c8fb5affe5802c133abe10a51b228bfd76e03147 Author: Matthew Salerno <m@salernosection.com> Date: Tue Dec 5 20:51:30 2023 -0500 wnlib is back commit 1e697eb859788c592a5e3606086180b72fd1e9f1 Author: Matthew Salerno <m@salernosection.com> Date: Sat Nov 11 22:09:26 2023 -0500 allow multiple devs for same subnet commit 45b70c90636eee57d49ebac348e345912be226da Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 18 16:04:49 2023 -0400 added manual ip tests and resulting fixes commit 3d49ebff29894fe58de97a07a02035bd6d9a2752 Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 18 11:49:58 2023 -0400 Added manual IP assignment tests commit bd52d85d2dc56b0933d958aa3ef4faa3113e356c Author: Matthew Salerno <m@salernosection.com> Date: Thu Sep 14 16:08:00 2023 -0400 Generalized ip assignment to take cidr or IP commit fd2b9ce77cf1492463413e8bc0a9797226f9ddd0 Author: Matthew Salerno <m@salernosection.com> Date: Thu Sep 14 13:50:11 2023 -0400 Generalized ip assignment to take cidr or IP commit 57f8e0e97463dec3e0da7f4b995ee89b92d36687 Author: Matthew Salerno <m@salernosection.com> Date: Wed Sep 13 18:38:42 2023 -0400 Fixed manual ipv4 assignment issue commit a24fffa753745d1d6285ae588ff29b374ea1f8d2 Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 11 13:44:11 2023 -0400 Update README.md with link to self commit dd9de47a84060004ec9c76ceb7e7ee4086438f73 Author: Matthew Salerno <m@salernosection.com> Date: Sat Sep 2 19:55:17 2023 -0400 fixed missing link commit e761330e9189d194018ec2e3bd314d015b3f5f38 Merge: bb8636d b658653 Author: Matthew Salerno <m@salernosection.com> Date: Sat Sep 2 19:54:29 2023 -0400 fixed missing link commit bb8636dd8d5841747cdb7e8da171aeb44534e4a6 Author: Matthew Salerno <m@salernosection.com> Date: Thu Aug 31 20:45:14 2023 -0400 Readme moved to wiki commit 86e300428b905843129d2785d01fdf4313334b93 Author: Matthew Salerno <m@salernosection.com> Date: Tue Aug 22 21:07:34 2023 -0400 Fixed a bug in allGroupEndpoints logic commit 9a5c773355c571b6dc005dd70b083775b00f106d Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 22:03:19 2023 -0400 oops, delete net.nix commit b97760e456dc471e33bab3844ab9d3dbd5cc5a73 Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:59:30 2023 -0400 fixup additional_ settings commit 753c0726630304113e5a6af75d97b4fcf0b45a90 Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:30:40 2023 -0400 change null test to test enable = false commit 690e13e902ef6515946baf882a470f00b54adefa Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:28:29 2023 -0400 add mailing list to readme
7 months ago
peerNames = mkOption {
default = null;
example = [ "container1" "container2" ];
type = with types; nullOr (listOf str);
description = mdDoc ''
When one host needs multiple devs for the same subnet, specify
multiple names manually. Overrides peerName.
'';
};
configurer = mkOption {
default = "static";
type = types.str;
description = mdDoc ''
Configurer to use. Builtin values can be
1 year ago
"static" or "networkd". Or, you can put
your own configurer that you registered in
`additionalConfigurers` here.
'';
};
keyProviders = mkOption {
default = ["acl"];
type = with types; listOf str;
description = mdDoc ''
List of key providers. Key providers will be queried in order.
Builtin providers are `wirenix.lib.defaultKeyProviders.acl`
and `wirenix.lib.defaultKeyProviders.agenix-rekey`. The latter
requires the agenix-rekey flake.
'';
};
additionalKeyProviders = mkOption {
default = {};
type = with types; unspecified;
description = mdDoc ''
Additional key providers to load, with their names being used to select them in the
`keyProviders` option
'';
};
additionalParsers = mkOption {
default = {};
type = with types; unspecified;
description = mdDoc ''
Additional parsers to load, with their names being used to compare to the acl's
"version" field.
'';
};
additionalConfigurers = mkOption {
default = {};
type = with types; unspecified;
description = mdDoc ''
Additional configurers to load, with their names being used to select them in the
`configurer` option.
'';
};
aclConfig = mkOption {
type = types.attrs;
description = ''
Shared configuration file that describes all clients
'';
};
secretsDir = mkOption {
default = null;
type = with types; nullOr path;
description = mdDoc ''
If using a secrets manager, where you have wirenix secrets stored. Must be
the same on all peers that need to connect to eachother
'';
};
Squashed commit of the following: commit 014fa13262f264d61de6ae5cd49b67bc02c25bd0 Author: Tilmann Meyer <me@atiltedtree.dev> Date: Sun Mar 24 23:09:00 2024 +0100 Fixed persistent keepalive for networkd configurer commit 37453982ab4c65848c9849aec54806b829072e91 Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:08:06 2024 -0400 update flake commit 68a0496bc7fa0770427d22bd25c6910b9144e9ab Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:07:59 2024 -0400 Update tests to use `subnets` in all connections commit 8c7f741b7f0549387abd96482010bc06b731a55c Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:07:31 2024 -0400 Add error message to parser for incorrectly configured subnets in connections commit 3e3a37fc0f5b232da4c4744d81981d68ccd93ffc Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:05:27 2024 -0400 Update disjoint test commit 1236e4e8f27c22e3e9d936dbbdcb1913b26b8c9c Author: Adam Stephens <adam@valkor.net> Date: Sun Mar 24 20:59:26 2024 -0400 Add disjointed meshes tests commit dadd5bf7205eddb0a17330426bcabdccd6923615 Author: Matthew Salerno <m@salernosection.com> Date: Wed Dec 13 22:01:16 2023 -0500 add tags to agenix-rekey provider commit 1d3184639a5a83f0633f2908cd3b66293a24d1d8 Author: Matthew Salerno <m@salernosection.com> Date: Mon Dec 11 22:09:45 2023 -0500 sneaky systemd issues with dev only commit c8fb5affe5802c133abe10a51b228bfd76e03147 Author: Matthew Salerno <m@salernosection.com> Date: Tue Dec 5 20:51:30 2023 -0500 wnlib is back commit 1e697eb859788c592a5e3606086180b72fd1e9f1 Author: Matthew Salerno <m@salernosection.com> Date: Sat Nov 11 22:09:26 2023 -0500 allow multiple devs for same subnet commit 45b70c90636eee57d49ebac348e345912be226da Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 18 16:04:49 2023 -0400 added manual ip tests and resulting fixes commit 3d49ebff29894fe58de97a07a02035bd6d9a2752 Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 18 11:49:58 2023 -0400 Added manual IP assignment tests commit bd52d85d2dc56b0933d958aa3ef4faa3113e356c Author: Matthew Salerno <m@salernosection.com> Date: Thu Sep 14 16:08:00 2023 -0400 Generalized ip assignment to take cidr or IP commit fd2b9ce77cf1492463413e8bc0a9797226f9ddd0 Author: Matthew Salerno <m@salernosection.com> Date: Thu Sep 14 13:50:11 2023 -0400 Generalized ip assignment to take cidr or IP commit 57f8e0e97463dec3e0da7f4b995ee89b92d36687 Author: Matthew Salerno <m@salernosection.com> Date: Wed Sep 13 18:38:42 2023 -0400 Fixed manual ipv4 assignment issue commit a24fffa753745d1d6285ae588ff29b374ea1f8d2 Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 11 13:44:11 2023 -0400 Update README.md with link to self commit dd9de47a84060004ec9c76ceb7e7ee4086438f73 Author: Matthew Salerno <m@salernosection.com> Date: Sat Sep 2 19:55:17 2023 -0400 fixed missing link commit e761330e9189d194018ec2e3bd314d015b3f5f38 Merge: bb8636d b658653 Author: Matthew Salerno <m@salernosection.com> Date: Sat Sep 2 19:54:29 2023 -0400 fixed missing link commit bb8636dd8d5841747cdb7e8da171aeb44534e4a6 Author: Matthew Salerno <m@salernosection.com> Date: Thu Aug 31 20:45:14 2023 -0400 Readme moved to wiki commit 86e300428b905843129d2785d01fdf4313334b93 Author: Matthew Salerno <m@salernosection.com> Date: Tue Aug 22 21:07:34 2023 -0400 Fixed a bug in allGroupEndpoints logic commit 9a5c773355c571b6dc005dd70b083775b00f106d Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 22:03:19 2023 -0400 oops, delete net.nix commit b97760e456dc471e33bab3844ab9d3dbd5cc5a73 Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:59:30 2023 -0400 fixup additional_ settings commit 753c0726630304113e5a6af75d97b4fcf0b45a90 Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:30:40 2023 -0400 change null test to test enable = false commit 690e13e902ef6515946baf882a470f00b54adefa Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:28:29 2023 -0400 add mailing list to readme
7 months ago
devNameMethod = mkOption {
default = "short";
type = with types; strMatching "hash|long|short";
description = mdDoc ''
The method used to derive device names. Device names are limited to 15 characters,
but often times subnet names will exceed that. "hash" is the most reliable, and
will always create a name unique to the subnet and peer combination. "long" will
return the entire subnet, and "short" will return the beginning of the subnet up
until the first "." character.
'';
};
};
};
# --------------------------------------------------------------- #
# Due to merge weirdness, I have to define what configuration keys
# we're touching upfront, and make sure they exist
Squashed commit of the following: commit 014fa13262f264d61de6ae5cd49b67bc02c25bd0 Author: Tilmann Meyer <me@atiltedtree.dev> Date: Sun Mar 24 23:09:00 2024 +0100 Fixed persistent keepalive for networkd configurer commit 37453982ab4c65848c9849aec54806b829072e91 Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:08:06 2024 -0400 update flake commit 68a0496bc7fa0770427d22bd25c6910b9144e9ab Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:07:59 2024 -0400 Update tests to use `subnets` in all connections commit 8c7f741b7f0549387abd96482010bc06b731a55c Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:07:31 2024 -0400 Add error message to parser for incorrectly configured subnets in connections commit 3e3a37fc0f5b232da4c4744d81981d68ccd93ffc Author: Matthew Salerno <m@salernosection.com> Date: Sun Mar 24 21:05:27 2024 -0400 Update disjoint test commit 1236e4e8f27c22e3e9d936dbbdcb1913b26b8c9c Author: Adam Stephens <adam@valkor.net> Date: Sun Mar 24 20:59:26 2024 -0400 Add disjointed meshes tests commit dadd5bf7205eddb0a17330426bcabdccd6923615 Author: Matthew Salerno <m@salernosection.com> Date: Wed Dec 13 22:01:16 2023 -0500 add tags to agenix-rekey provider commit 1d3184639a5a83f0633f2908cd3b66293a24d1d8 Author: Matthew Salerno <m@salernosection.com> Date: Mon Dec 11 22:09:45 2023 -0500 sneaky systemd issues with dev only commit c8fb5affe5802c133abe10a51b228bfd76e03147 Author: Matthew Salerno <m@salernosection.com> Date: Tue Dec 5 20:51:30 2023 -0500 wnlib is back commit 1e697eb859788c592a5e3606086180b72fd1e9f1 Author: Matthew Salerno <m@salernosection.com> Date: Sat Nov 11 22:09:26 2023 -0500 allow multiple devs for same subnet commit 45b70c90636eee57d49ebac348e345912be226da Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 18 16:04:49 2023 -0400 added manual ip tests and resulting fixes commit 3d49ebff29894fe58de97a07a02035bd6d9a2752 Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 18 11:49:58 2023 -0400 Added manual IP assignment tests commit bd52d85d2dc56b0933d958aa3ef4faa3113e356c Author: Matthew Salerno <m@salernosection.com> Date: Thu Sep 14 16:08:00 2023 -0400 Generalized ip assignment to take cidr or IP commit fd2b9ce77cf1492463413e8bc0a9797226f9ddd0 Author: Matthew Salerno <m@salernosection.com> Date: Thu Sep 14 13:50:11 2023 -0400 Generalized ip assignment to take cidr or IP commit 57f8e0e97463dec3e0da7f4b995ee89b92d36687 Author: Matthew Salerno <m@salernosection.com> Date: Wed Sep 13 18:38:42 2023 -0400 Fixed manual ipv4 assignment issue commit a24fffa753745d1d6285ae588ff29b374ea1f8d2 Author: Matthew Salerno <m@salernosection.com> Date: Mon Sep 11 13:44:11 2023 -0400 Update README.md with link to self commit dd9de47a84060004ec9c76ceb7e7ee4086438f73 Author: Matthew Salerno <m@salernosection.com> Date: Sat Sep 2 19:55:17 2023 -0400 fixed missing link commit e761330e9189d194018ec2e3bd314d015b3f5f38 Merge: bb8636d b658653 Author: Matthew Salerno <m@salernosection.com> Date: Sat Sep 2 19:54:29 2023 -0400 fixed missing link commit bb8636dd8d5841747cdb7e8da171aeb44534e4a6 Author: Matthew Salerno <m@salernosection.com> Date: Thu Aug 31 20:45:14 2023 -0400 Readme moved to wiki commit 86e300428b905843129d2785d01fdf4313334b93 Author: Matthew Salerno <m@salernosection.com> Date: Tue Aug 22 21:07:34 2023 -0400 Fixed a bug in allGroupEndpoints logic commit 9a5c773355c571b6dc005dd70b083775b00f106d Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 22:03:19 2023 -0400 oops, delete net.nix commit b97760e456dc471e33bab3844ab9d3dbd5cc5a73 Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:59:30 2023 -0400 fixup additional_ settings commit 753c0726630304113e5a6af75d97b4fcf0b45a90 Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:30:40 2023 -0400 change null test to test enable = false commit 690e13e902ef6515946baf882a470f00b54adefa Author: Matthew Salerno <m@salernosection.com> Date: Mon Aug 21 21:28:29 2023 -0400 add mailing list to readme
7 months ago
config =
mkIf cfg.enable (safetyMerge ["networking" "sops" "age" "systemd" "services" "environment"] (
if builtins.typeOf cfg.peerNames == "null" then (
[(configurer keyProviders (parser acl) cfg.peerName)]
)
else (
warnIf (cfg.devNameMethod != "hash") "Wirenix: Using multiple peerNames for devNameMethod = \"${cfg.devNameMethod}\" can (will) cause device name collisions. Please use devNameMethod = \"hash\" instead" (
warnIf (cfg.configurer == "static") "Wirenix: static configurer not supported with multiple peerNames. Please use networkd or networkd-dev-only instead." (
(map (name: (configurer keyProviders (parser acl) name)) cfg.peerNames)
))
)
));
}