nixfiles/system/common/remote.nix

24 lines
485 B
Nix

{ config, lib, pkgs, ... }:
with lib; let
cfg = config.nixfiles.common.remoteAccess;
in
{
config = lib.mkIf cfg.enable {
# Enable the OpenSSH daemon.
# services.openssh.enable = true;
services.openssh = {
enable = true;
openFirewall = true;
settings = {
};
};
services.tailscale.enable = true;
networking.wireguard.enable = true;
};
options = {
nixfiles.common.remoteAccess = mkEnbaleOption "remote access options" ; };
}