mirror of
https://github.com/Misterio77/Foundry.git
synced 2026-08-24 10:04:09 -05:00
home/ssh: forward everything to all of my subdomains
This commit is contained in:
@@ -1,17 +1,13 @@
|
||||
{ outputs, hostname, persistence, lib, ... }:
|
||||
let
|
||||
notSelf = n: n != hostname;
|
||||
hosts = builtins.filter notSelf (builtins.attrNames outputs.nixosConfigurations);
|
||||
hostnames = hosts
|
||||
++ (map (h: "${h}.misterio.me") hosts)
|
||||
++ (map (h: "${h}.fontes.dev.br") hosts)
|
||||
++ (map (h: "${h}.ts.fontes.dev.br") hosts);
|
||||
hostnames = builtins.filter notSelf (builtins.attrNames outputs.nixosConfigurations);
|
||||
in
|
||||
{
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
matchBlocks.home = {
|
||||
host = builtins.concatStringsSep " " hostnames;
|
||||
host = builtins.concatStringsSep " " (hostnames ++ [ "fontes.dev.br" "*.fontes.dev.br" "misterio.me" "*.misterio.me" ]);
|
||||
forwardAgent = true;
|
||||
remoteForwards = [{
|
||||
bind.address = ''/run/user/1000/gnupg/S.gpg-agent'';
|
||||
|
||||
Reference in New Issue
Block a user