dotfiles/nix/home-manager/modules/ssh/default.nix

21 lines
412 B
Nix
Raw Normal View History

{ pkgs, config, lib, ... }:
with lib;
let
cfg = config.magic_rb.programs.ssh;
in
{
options.magic_rb.programs.ssh = {
enable = mkEnableOption "Enable ssh_config";
};
config = mkIf cfg.enable {
home.file = {
".ssh/config".source = ./config;
};
home.activation."ssh-controlmasters" = config.lib.dag.entryAfter ["writeBoundary"] ''
mkdir -p ~/.ssh/controlmasters
'';
};
}