22 lines
373 B
Nix
22 lines
373 B
Nix
{ 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";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|