17 lines
386 B
Nix
17 lines
386 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;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
}
|