services: move .nix files into their own dirs

This commit is contained in:
Bloxx12 2025-04-09 15:31:18 +02:00
commit e0fb4b8903
8 changed files with 0 additions and 11 deletions

View file

@ -0,0 +1,20 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption;
in {
options.modules.programs.ssh.enable = mkEnableOption "ssh";
config = {
# set the ssh socket globally. This alows all applications and shells to use
# the ssh-agent.
environment.sessionVariables.SSH_AUTH_SOCK = "/run/user/1000/ssh-agent";
programs.ssh.startAgent = true;
services.openssh = {
enable = true;
ports = [22];
settings = {
PasswordAuthentication = false;
PermitRootLogin = "no";
};
};
};
}