nixos-config/nixos/components/network/default.nix

25 lines
357 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
./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
}