mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-26 10:06:13 +01:00
76513487e9
Signed-off-by: Magic_RB <magic_rb@redalder.org>
21 lines
412 B
Nix
21 lines
412 B
Nix
{ 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
|
|
'';
|
|
};
|
|
}
|