pinwheel: Add sshfs to ssh module

This commit is contained in:
Alexander Heldt
2023-10-23 21:52:19 +02:00
parent b2eed35ef6
commit 03284f53ff

View File

@@ -1,32 +1,37 @@
{ pkgs, ... }:
{ {
home-manager.users.alex.programs.ssh = { home-manager.users.alex = {
enable = true; programs.ssh = {
enable = true;
matchBlocks = { matchBlocks = {
"sombrero.local" = { "sombrero.local" = {
hostname = "192.168.50.200"; hostname = "192.168.50.200";
user = "alex"; user = "alex";
identityFile = "/home/alex/.ssh/alex.pinwheel-sombrero"; identityFile = "/home/alex/.ssh/alex.pinwheel-sombrero";
port = 1122; port = 1122;
}; };
"sombrero.a2x.se" = { "sombrero.a2x.se" = {
hostname = "sombrero.a2x.se"; hostname = "sombrero.a2x.se";
user = "alex"; user = "alex";
identityFile = "/home/alex/.ssh/alex.pinwheel-sombrero"; identityFile = "/home/alex/.ssh/alex.pinwheel-sombrero";
port = 1122; port = 1122;
}; };
"github.com" = { "github.com" = {
hostname = "github.com"; hostname = "github.com";
identityFile = "/home/alex/.ssh/alex.pinwheel-github.com"; identityFile = "/home/alex/.ssh/alex.pinwheel-github.com";
}; };
"gitlab.com" = { "gitlab.com" = {
hostname = "gitlab.com"; hostname = "gitlab.com";
identityFile = "/home/alex/.ssh/alex.pinwheel-work"; identityFile = "/home/alex/.ssh/alex.pinwheel-work";
};
}; };
}; };
home.packages = [ pkgs.sshfs ];
}; };
age.secrets = { age.secrets = {