home: ssh: setup config
This commit is contained in:
parent
0ecf54e3d5
commit
d177a5bd71
|
@ -11,6 +11,7 @@
|
|||
./laptop.nix
|
||||
./rofi.nix
|
||||
./secrets
|
||||
./ssh.nix
|
||||
./starship.nix
|
||||
./themes
|
||||
./tmux.nix
|
||||
|
|
21
home/ssh.nix
Normal file
21
home/ssh.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue