diff options
| author | Alejandro Soto <alejandro@34project.org> | 2024-12-03 21:19:39 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2024-12-03 21:49:54 -0600 |
| commit | 61f3db56410f41d5249c88e44db60d9713dae26d (patch) | |
| tree | 49c2d5d5e4da331d139cfdc6034c0dba5980271b /home/environ/ssh.nix | |
| parent | 854f5ee287eb66db5a0713e2f4fac56794e3d735 (diff) | |
home: big refactor
Diffstat (limited to '')
| -rw-r--r-- | home/environ/ssh.nix (renamed from home/ssh/default.nix) | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/home/ssh/default.nix b/home/environ/ssh.nix index 220d18d..29829be 100644 --- a/home/ssh/default.nix +++ b/home/environ/ssh.nix @@ -1,7 +1,10 @@ { config, lib, pkgs, ... }: -with lib; { - config = { - programs.ssh = mkIf (!config.home.isolation.active) { +with lib; let + cfg = config.local.environ; +in +{ + config = mkIf cfg.enable { + programs.ssh = { enable = true; compression = true; @@ -10,7 +13,7 @@ with lib; { extraOptionOverrides.AddKeysToAgent = "true"; - matchBlocks = import ./match.nix; + matchBlocks = import ./ssh-match.nix; }; systemd.user.tmpfiles.rules = [ |
