Personal-use NixOS configuration
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Set up SSH agent forwarding

encode42 26c93416 1c91ae5c

+35 -2
+27
homes/encode42/common/ssh.nix
··· 1 + let 2 + host = "index"; 3 + address = "192.168.1.2"; 4 + in 5 + { 6 + programs.ssh = { 7 + enable = true; 8 + enableDefaultConfig = false; 9 + 10 + matchBlocks = { 11 + "index-local" = { 12 + match = "host ${host} exec 'ping -c1 -W0.5 ${address} >/dev/null 2>&1'"; 13 + hostname = address; 14 + 15 + forwardAgent = true; 16 + }; 17 + 18 + "index-remote" = { 19 + inherit host; 20 + 21 + hostname = "encrypted.group"; 22 + 23 + forwardAgent = true; 24 + }; 25 + }; 26 + }; 27 + }
+2 -1
hosts/decryption/homes/encode42.nix
··· 8 8 imports = [ 9 9 (flakeRoot + /homes/encode42/common) 10 10 11 + (flakeRoot + /homes/encode42/common/direnv.nix) 11 12 (flakeRoot + /homes/encode42/common/github.nix) 12 - (flakeRoot + /homes/encode42/common/direnv.nix) 13 + (flakeRoot + /homes/encode42/common/ssh.nix) 13 14 14 15 (flakeRoot + /homes/encode42/desktop/environments/gnome.nix) 15 16
+2 -1
hosts/encryption/homes/encode42.nix
··· 38 38 imports = [ 39 39 (flakeRoot + /homes/encode42/common) 40 40 41 + (flakeRoot + /homes/encode42/common/direnv.nix) 41 42 (flakeRoot + /homes/encode42/common/github.nix) 42 - (flakeRoot + /homes/encode42/common/direnv.nix) 43 + (flakeRoot + /homes/encode42/common/ssh.nix) 43 44 44 45 (flakeRoot + /homes/encode42/common/imagemagik.nix) 45 46
+4
hosts/index/config/ssh.nix
··· 1 1 { 2 2 services.openssh = { 3 + settings = { 4 + AllowAgentForwarding = true; 5 + }; 6 + 3 7 extraConfig = '' 4 8 Match Address 192.168.1.0/24 5 9 AllowUsers *