/ modules / services / ssh.nix
ssh.nix
 1  {
 2    # pkgs,
 3    config,
 4    lib,
 5    ...
 6  }: let
 7  cfg = config.services.ssh;
 8  inherit(lib) mkIf mkEnableOption;
 9  
10  in{
11    options.services.ssh = {
12      enable = mkEnableOption "ssh";
13    };
14  
15    config = mkIf cfg.enable {
16      os = { 
17      services.openssh.enable = true;
18  
19      programs.ssh.startAgent = true;
20      };
21    };
22  }