diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-03-20 18:06:25 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-03-21 04:08:40 -0600 |
| commit | 601f7cc2a355b4711ddc24b9d46262c3f3784be1 (patch) | |
| tree | 0b2d17fb7f18996df07c2a3c5f3144586bf49cce /home/ssh/default.nix | |
| parent | 718a2f662d1c1c1951ef5795ae1b5c4f9b75c1f0 (diff) | |
home/ssh: initial commit
Diffstat (limited to 'home/ssh/default.nix')
| -rw-r--r-- | home/ssh/default.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/home/ssh/default.nix b/home/ssh/default.nix new file mode 100644 index 0000000..220d18d --- /dev/null +++ b/home/ssh/default.nix @@ -0,0 +1,20 @@ +{ config, lib, pkgs, ... }: +with lib; { + config = { + programs.ssh = mkIf (!config.home.isolation.active) { + enable = true; + + compression = true; + controlMaster = "autoask"; + controlPath = "/run/user/%i/ssh/master-%r@%n:%p"; + + extraOptionOverrides.AddKeysToAgent = "true"; + + matchBlocks = import ./match.nix; + }; + + systemd.user.tmpfiles.rules = [ + "d %t/ssh 0700" + ]; + }; +} |
