blob: 10139df31fdb3e4d4d6cc304408b4d53acc93200 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{ 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;
};
}
|