add git.zynh.me to ssh hosts

This commit is contained in:
Zynh Ludwig 2024-07-08 22:03:34 -07:00
parent e07dce7874
commit 521dc4a0ec
3 changed files with 26 additions and 0 deletions

View file

@ -15,6 +15,7 @@
./lazygit.nix
./dunst.nix
./sops.nix
./ssh.nix
];
nixpkgs.config.allowUnfree = true;

24
home/modules/ssh.nix Normal file
View 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";
};
};
};
};
}

View file

@ -19,6 +19,7 @@ in
lazygit.enable = true;
dunst.enable = true;
sops.enable = true;
ssh.enable = true;
};
xsession.numlock.enable = true;