services: move .nix files into their own dirs
This commit is contained in:
parent
7ccea14afb
commit
e0fb4b8903
8 changed files with 0 additions and 11 deletions
20
modules/services/ssh/module.nix
Normal file
20
modules/services/ssh/module.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue