nichts/modules/services/ssh.nix

17 lines
386 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }
with lib; let
cfg = config.myOptions.programs.ssh;
username = config.myOptions.other.system.username;
in {
options.myOptions.programs.ssh.enable = mkEnableOption "ssh";
config = mkIf cfg.enable {
home-manager.users.${username} = {
programs.ssh = {
startAgent = true;
};
};
};
}