mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
16 lines
389 B
Nix
16 lines
389 B
Nix
|
{ config, lib, pkgs, user, ... }:
|
||
|
|
||
|
let cfg = config.modules.services.ssh;
|
||
|
in {
|
||
|
options.modules.services.ssh.enable = lib.mkEnableOption "ssh";
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
services.openssh.enable = true;
|
||
|
services.pcscd.enable = true;
|
||
|
programs.gnupg.agent = {
|
||
|
enable = true;
|
||
|
pinentryPackage = pkgs.pinentry-curses;
|
||
|
enableSSHSupport = true;
|
||
|
};
|
||
|
};
|
||
|
}
|