add git.zynh.me to ssh hosts

sh-initrd-on-root
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 ./lazygit.nix
./dunst.nix ./dunst.nix
./sops.nix ./sops.nix
./ssh.nix
]; ];
nixpkgs.config.allowUnfree = true; 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; lazygit.enable = true;
dunst.enable = true; dunst.enable = true;
sops.enable = true; sops.enable = true;
ssh.enable = true;
}; };
xsession.numlock.enable = true; xsession.numlock.enable = true;