blob: fb5830c5cd9a9e7ee3f9af8b6dacac4e10ba86b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
{ options, config, lib, pkgs, namespace, ... }:
with lib; with lib.${namespace}; let
cfg = config.${namespace}.tools.ssh;
impermanence = config.${namespace}.impermanence;
in {
options.${namespace}.tools.ssh = with types; {
enable = mkEnableOption "ssh";
};
config = mkIf cfg.enable {
home.persistence.${impermanence.secure.location} = {
directories = [
".ssh"
];
};
programs.ssh.enable = true;
services.gpg-agent = {
enableSshSupport = true;
sshKeys = [ "1DC50342548C9CAACDD88211FF51697C3622D88A" ];
};
};
}
|