From 75a380e25afe636de16c9ef32719a9e25ecff34e Mon Sep 17 00:00:00 2001 From: Patrick Neff Date: Tue, 30 Jan 2024 17:57:55 +0100 Subject: [PATCH] Update ssh settings --- flake.lock | 26 +++++++++++++------------- modules/default.nix | 1 - modules/shell/default.nix | 1 + modules/shell/ssh.nix | 10 ++++++++++ 4 files changed, 24 insertions(+), 14 deletions(-) create mode 100644 modules/shell/ssh.nix diff --git a/flake.lock b/flake.lock index d0c3c6a..acbfb26 100644 --- a/flake.lock +++ b/flake.lock @@ -274,11 +274,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1706134977, - "narHash": "sha256-KwNb1Li3K6vuVwZ77tFjZ89AWBo7AiCs9t0Cens4BsM=", + "lastModified": 1706435589, + "narHash": "sha256-yhEYJxMv5BkfmUuNe4QELKo+V5eq1pwhtVs6kEziHfE=", "owner": "nix-community", "repo": "home-manager", - "rev": "6359d40f6ec0b72a38e02b333f343c3d4929ec10", + "rev": "4d54c29bce71f8c261513e0662cc573d30f3e33e", "type": "github" }, "original": { @@ -295,11 +295,11 @@ "nixpkgs": "nixpkgs_4" }, "locked": { - "lastModified": 1706451507, - "narHash": "sha256-TfrqIL5laTLh4g1AhcB1u2xVdIwKhZe9s2JbN1XTQK4=", + "lastModified": 1706470195, + "narHash": "sha256-SBdC0Xx7iOxjYKgIlHWfoH6oRIae1CBRZcIRIO5Iymc=", "ref": "refs/heads/master", - "rev": "a5dab140d0f3837ed4f70fdf1bb30fec72e7800e", - "revCount": 1, + "rev": "148f7fe77452628d33cc431421a7819f3365cb03", + "revCount": 6, "type": "git", "url": "file:///home/odie/Code/nix/neovim-config" }, @@ -435,11 +435,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1705677747, - "narHash": "sha256-eyM3okYtMgYDgmYukoUzrmuoY4xl4FUujnsv/P6I/zI=", + "lastModified": 1706191920, + "narHash": "sha256-eLihrZAPZX0R6RyM5fYAWeKVNuQPYjAkCUBr+JNvtdE=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "bbe7d8f876fbbe7c959c90ba2ae2852220573261", + "rev": "ae5c332cbb5827f6b1f02572496b141021de335f", "type": "github" }, "original": { @@ -467,11 +467,11 @@ }, "nixpkgs_4": { "locked": { - "lastModified": 1705856552, - "narHash": "sha256-JXfnuEf5Yd6bhMs/uvM67/joxYKoysyE3M2k6T3eWbg=", + "lastModified": 1706191920, + "narHash": "sha256-eLihrZAPZX0R6RyM5fYAWeKVNuQPYjAkCUBr+JNvtdE=", "owner": "nixos", "repo": "nixpkgs", - "rev": "612f97239e2cc474c13c9dafa0df378058c5ad8d", + "rev": "ae5c332cbb5827f6b1f02572496b141021de335f", "type": "github" }, "original": { diff --git a/modules/default.nix b/modules/default.nix index c3b7a84..6aa47e9 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -23,7 +23,6 @@ programs = { bat.enable = true; - ssh.enable = true; }; services = { diff --git a/modules/shell/default.nix b/modules/shell/default.nix index 00f0c2f..24a6b62 100644 --- a/modules/shell/default.nix +++ b/modules/shell/default.nix @@ -10,5 +10,6 @@ _: { ./zsh.nix ./btop.nix ./zoxide.nix + ./ssh.nix ]; } diff --git a/modules/shell/ssh.nix b/modules/shell/ssh.nix new file mode 100644 index 0000000..10dcf16 --- /dev/null +++ b/modules/shell/ssh.nix @@ -0,0 +1,10 @@ +{ pkgs, ... }: { + home.packages = with pkgs; [ tea ]; + programs = { + ssh = { + enable = true; + addKeysToAgent = "yes"; + forwardAgent = true; + }; + }; +}