home: ssh: setup config

This commit is contained in:
Antoine Martin 2021-07-29 11:31:21 +02:00
parent 0ecf54e3d5
commit d177a5bd71
2 changed files with 22 additions and 0 deletions

View file

@ -11,6 +11,7 @@
./laptop.nix ./laptop.nix
./rofi.nix ./rofi.nix
./secrets ./secrets
./ssh.nix
./starship.nix ./starship.nix
./themes ./themes
./tmux.nix ./tmux.nix

21
home/ssh.nix Normal file
View file

@ -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";
};
};
};
};
}