nixos-config/components/network/default.nix

26 lines
376 B
Nix
Raw Normal View History

2023-06-01 11:38:39 +02:00
{ pkgs, lib, ... }:
with lib;
with types;
2022-10-13 10:19:23 +02:00
{
2023-06-01 11:38:39 +02:00
options.components.network = {
enable = mkOption {
type = bool;
default = true;
};
};
2022-10-13 10:19:23 +02:00
imports = [
2024-04-06 10:34:54 +02:00
#./avahi.nix
2024-06-15 01:17:53 +02:00
./fail2ban.nix
2024-04-06 10:34:54 +02:00
./hosts.nix
./nginx.nix
2022-10-13 10:19:23 +02:00
./sshd
2024-04-06 10:34:54 +02:00
./syncthing.nix
2022-10-13 10:51:21 +02:00
./tinc
2023-06-01 11:38:39 +02:00
./wifi.nix
2024-04-06 10:34:54 +02:00
./wireguard.nix
2022-10-13 10:19:23 +02:00
];
2023-06-01 11:38:39 +02:00
config = mkIf config.components.network.enable { };
2022-10-13 10:19:23 +02:00
}