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