From e6ed60548397627bf10f561f9438201dbba0a36e Mon Sep 17 00:00:00 2001 From: Azat Bahawi Date: Sun, 21 Apr 2024 02:15:42 +0300 Subject: 2024-04-21 --- modules/nixos/endlessh.nix | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 modules/nixos/endlessh.nix (limited to 'modules/nixos/endlessh.nix') diff --git a/modules/nixos/endlessh.nix b/modules/nixos/endlessh.nix deleted file mode 100644 index f1bf0bc..0000000 --- a/modules/nixos/endlessh.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ config, lib, ... }: -with lib; -let - cfg = config.nixfiles.modules.endlessh; -in -{ - options.nixfiles.modules.endlessh.enable = mkEnableOption "endlessh"; - - config = - let - port = 22; - in - mkIf cfg.enable { - ark.directories = [ - "/var/lib/gotify-server" - "/var/lib/private/gotify-server" - ]; - - services.endlessh = { - enable = true; - inherit port; - extraOptions = [ - "-v" - "-4" - ]; - }; - - networking.firewall.allowedTCPPorts = [ port ]; - }; -} -- cgit 1.4.1