From 637e768561001ac5be57a80090a50be46fca44f0 Mon Sep 17 00:00:00 2001 From: Nydragon Date: Thu, 26 Sep 2024 15:08:57 +0200 Subject: [PATCH] feat: add toggle to ssh --- home/terminal/ssh/default.nix | 7 +++++-- hosts/brontes/home.nix | 1 + hosts/marr/home.nix | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/home/terminal/ssh/default.nix b/home/terminal/ssh/default.nix index d69d2fe..035172a 100644 --- a/home/terminal/ssh/default.nix +++ b/home/terminal/ssh/default.nix @@ -1,6 +1,9 @@ -{ +{ lib, config, ... }: +let + inherit (lib) mkIf; +in +mkIf config.programs.ssh.enable { programs.ssh = { - enable = true; addKeysToAgent = "confirm"; matchBlocks = { deck = { diff --git a/hosts/brontes/home.nix b/hosts/brontes/home.nix index 6076fa1..f0687a5 100644 --- a/hosts/brontes/home.nix +++ b/hosts/brontes/home.nix @@ -19,6 +19,7 @@ programs = { waybar.enable = true; + ssh.enable = true; }; services = { diff --git a/hosts/marr/home.nix b/hosts/marr/home.nix index 61cb69a..d2680d8 100644 --- a/hosts/marr/home.nix +++ b/hosts/marr/home.nix @@ -23,6 +23,7 @@ programs.direnv = { enable = true; nix-direnv.enable = true; + ssh.enable = true; }; programs = {