mirror of
https://github.com/Moe1369/nix-fleet.git
synced 2026-04-24 23:59:07 +02:00
27 lines
788 B
Nix
27 lines
788 B
Nix
{ config, ... }: {
|
|
flake.homeModules.base-usr-ssh-all = { config, ... }: {
|
|
sops.secrets."ssh/intern/public" = {
|
|
path = "${config.home.homeDirectory}/.ssh/intern.pub";
|
|
};
|
|
sops.secrets."ssh/intern/private" = {
|
|
path = "${config.home.homeDirectory}/.ssh/intern";
|
|
};
|
|
sops.secrets."ssh/extern/public" = {
|
|
path = "${config.home.homeDirectory}/.ssh/extern.pub";
|
|
};
|
|
sops.secrets."ssh/extern/private" = {
|
|
path = "${config.home.homeDirectory}/.ssh/extern";
|
|
};
|
|
programs.ssh.matchBlocks = {
|
|
"intern" = {
|
|
host = "*";
|
|
identityFile = "${config.home.homeDirectory}/.ssh/intern";
|
|
};
|
|
"extern" = {
|
|
host = "*";
|
|
identityFile = "${config.home.homeDirectory}/.ssh/extern";
|
|
};
|
|
};
|
|
};
|
|
}
|