nichts/modules/services/ssh.nix
2024-04-12 20:59:27 +02:00

16 lines
387 B
Nix

{ 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;
};
};
};
}