diff --git a/hosts/v-th-ctr-01/default.nix b/hosts/v-th-ctr-01/default.nix index 36a0006..6f42900 100644 --- a/hosts/v-th-ctr-01/default.nix +++ b/hosts/v-th-ctr-01/default.nix @@ -27,6 +27,7 @@ sunshine.enable = false; garbage-collection.enable = true; incus.enable = false; + ssh.enable = true; }; hardware = { fprint.enable = false; diff --git a/modules/home/default.nix b/modules/home/default.nix index 20103ba..814c54a 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -21,5 +21,7 @@ ./theming/stylix.nix ./desktop-environments/hyprland/default.nix + + ./containers/nginx.nix ]; } diff --git a/modules/system/default.nix b/modules/system/default.nix index 239da18..9e3183f 100644 --- a/modules/system/default.nix +++ b/modules/system/default.nix @@ -9,6 +9,7 @@ ./services/docker.nix ./services/podman.nix ./services/quickemu.nix + ./services/ssh.nix ./services/sunshine.nix ./services/garbage-collection.nix ./services/incus.nix diff --git a/modules/system/services/ssh.nix b/modules/system/services/ssh.nix new file mode 100644 index 0000000..3821128 --- /dev/null +++ b/modules/system/services/ssh.nix @@ -0,0 +1,26 @@ +{ pkgs, config, lib, ... }: + +with lib; + +let + cfg = config.settings.services.ssh; +in { + options = { + settings.services.ssh.enable = lib.mkOption { + type = lib.types.bool; + description = '' + Enable ssh service + ''; + default = false; + }; + }; + + config = mkIf cfg.enable { + services.openssh = { + enable = true; + ports = [ 22 ]; + }; + + networking.firewall.allowedTCPPorts = [ 22 ]; + }; +}