23 lines
337 B
Nix
23 lines
337 B
Nix
{ pkgs, lib, ... }:
|
|
with lib;
|
|
with types;
|
|
{
|
|
options.components.network = {
|
|
enable = mkOption {
|
|
type = bool;
|
|
default = true;
|
|
};
|
|
};
|
|
|
|
imports = [
|
|
./sshd
|
|
./tinc
|
|
./hosts.nix
|
|
./wifi.nix
|
|
#./avahi.nix
|
|
./syncthing.nix
|
|
./nginx.nix
|
|
];
|
|
|
|
config = mkIf config.components.network.enable { };
|
|
}
|