From d177a5bd71b17f6e822d030f2099543d27658f93 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 29 Jul 2021 11:31:21 +0200 Subject: [PATCH] home: ssh: setup config --- home/default.nix | 1 + home/ssh.nix | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 home/ssh.nix diff --git a/home/default.nix b/home/default.nix index f4c1384..d63a19e 100644 --- a/home/default.nix +++ b/home/default.nix @@ -11,6 +11,7 @@ ./laptop.nix ./rofi.nix ./secrets + ./ssh.nix ./starship.nix ./themes ./tmux.nix diff --git a/home/ssh.nix b/home/ssh.nix new file mode 100644 index 0000000..6c98ce2 --- /dev/null +++ b/home/ssh.nix @@ -0,0 +1,21 @@ +{ config, lib, ... }: +let + cfg = config.my.home.ssh; +in +{ + options.my.home.ssh = with lib; { + enable = (mkEnableOption "ssh configuration") // { default = true; }; + }; + + config = lib.mkIf cfg.enable { + programs.ssh = { + enable = true; + + matchBlocks = { + poseidon = { + hostname = "poseidon.alarsyo.net"; + }; + }; + }; + }; +}