add git.zynh.me to ssh hosts
This commit is contained in:
parent
e07dce7874
commit
521dc4a0ec
3 changed files with 26 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
|||
./lazygit.nix
|
||||
./dunst.nix
|
||||
./sops.nix
|
||||
./ssh.nix
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
|
24
home/modules/ssh.nix
Normal file
24
home/modules/ssh.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ lib, config, ... }:
|
||||
|
||||
let
|
||||
cfg = config.snowhawk.ssh;
|
||||
in
|
||||
{
|
||||
options.snowhawk.ssh = {
|
||||
enable = lib.mkEnableOption "ssh";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
matchBlocks = {
|
||||
"git.zynh.me" = {
|
||||
hostname = "git.zynh.me";
|
||||
user = "git";
|
||||
port = 2221;
|
||||
identityFile = "${config.home.homeDirectory}/.ssh/personal_git";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -19,6 +19,7 @@ in
|
|||
lazygit.enable = true;
|
||||
dunst.enable = true;
|
||||
sops.enable = true;
|
||||
ssh.enable = true;
|
||||
};
|
||||
|
||||
xsession.numlock.enable = true;
|
||||
|
|
Loading…
Reference in a new issue