mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-27 02:26:14 +01:00
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
|
||
|
'';
|
||
|
};
|
||
|
}
|