17 lines
421 B
Nix
Raw Normal View History

2023-09-12 21:34:40 -07:00
{ config, lib, pkgs, user, ... }:
let cfg = config.modules.system.ssh;
in {
options.modules.system.ssh.enable = lib.mkEnableOption "ssh";
config = lib.mkIf cfg.enable {
# Enable the OpenSSH daemon.
services.openssh.enable = true;
services.pcscd.enable = true;
programs.gnupg.agent = {
enable = true;
2024-05-04 00:56:44 -07:00
pinentryPackage = pkgs.pinentry-curses;
2023-09-12 21:34:40 -07:00
enableSSHSupport = true;
};
};
}