This repository has been archived on 2024-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
nix-config-tn/nixos/home/modules/security/ssh/default.nix
jahanson ca25688c2c
All checks were successful
Build / nix-build (native-x86_64, durincore) (pull_request) Successful in 7m46s
Build / nix-build (native-aarch64, varda) (pull_request) Successful in 1m29s
Mixing things around
2024-05-30 21:33:06 -05:00

21 lines
385 B
Nix

{ config, lib, ... }:
with lib; let
cfg = config.myHome.security.ssh;
in
{
options.myHome.security.ssh = {
enable = mkEnableOption "ssh";
matchBlocks = mkOption {
type = types.attrs;
default = { };
};
};
config = mkIf cfg.enable {
programs.ssh = {
inherit (cfg) matchBlocks;
enable = true;
# addKeysToAgent = "yes";
};
};
}