home: ssh: setup config
This commit is contained in:
parent
0ecf54e3d5
commit
d177a5bd71
2 changed files with 22 additions and 0 deletions
|
|
@ -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
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…
Add table
Add a link
Reference in a new issue