1
1
Fork 0
nixos/options/custom/programs/ssh.nix
Myned cfe0a8b886
1password: modify config
Signed-off-by: Myned <dev@bjork.tech>
2024-09-25 15:05:04 -05:00

27 lines
523 B
Nix

{
config,
lib,
...
}:
with lib; let
cfg = config.custom.programs.ssh;
in {
options.custom.programs.ssh.enable = mkOption {default = false;};
config = mkIf cfg.enable {
# Disable prompt for new hosts
# MitM warning is still active
programs.ssh.extraConfig = ''
StrictHostKeyChecking no
'';
home-manager.users.${config.custom.username}.programs.ssh = {
enable = true;
extraConfig = ''
Host *
IdentityAgent ~/.1password/agent.sock
'';
};
};
}