Move openssh configuration
All checks were successful
/ check (push) Successful in 1m34s

This commit is contained in:
Oliver Davies 2025-07-25 10:33:49 +01:00
parent ad516fd7e0
commit ce1fa163fd
9 changed files with 16 additions and 28 deletions

View file

@ -9,7 +9,6 @@
./media
./nix-index.nix
./nixpad
./openssh.nix
./pipewire.nix
./podman.nix
./st.nix

View file

@ -1,23 +0,0 @@
{ config, lib, ... }:
with lib;
let
cfg = config.features.core.openssh;
in
{
options.features.core.openssh.enable = mkEnableOption "Enable openssh";
config = mkIf cfg.enable {
services.openssh = {
enable = true;
openFirewall = lib.mkForce true;
settings = {
PasswordAuthentication = false;
PermitRootLogin = lib.mkForce "no";
};
};
};
}