nixos-config/home/ssh.nix

22 lines
373 B
Nix
Raw Normal View History

2021-07-29 11:31:21 +02:00
{ 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";
};
};
};
};
}