Skip to content

Commit 7463492

Browse files
bazel
1 parent 8fbeffb commit 7463492

File tree

5 files changed

+59
-7
lines changed

5 files changed

+59
-7
lines changed

hp/hp1/root_ssh_config

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
host hp4 hp4.home
2+
user remotebuild
3+
IdentityFile ~/.ssh/remotebuild
4+
ServerAliveInterval 10
5+
Protocol 2
6+
#UseRoaming no
7+
ForwardAgent yes
8+
# Modern Key Exchange Algorithms (Kex) - Prioritizes Post-Quantum (if available) and Curve25519
9+
KexAlgorithms sntrup761x25519-sha512@openssh.com,curve25519-sha256@libssh.org,curve25519-sha256,diffie-hellman-group-exchange-sha256
10+
# Modern Ciphers - Prioritizes ChaCha20 and AES-GCM (Authenticated Encryption)
11+
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com
12+
# Modern MACs - Prioritizes Encrypt-then-MAC (EtM) modes
13+
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com
14+
# temp hmac-md5
15+
#MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-md5
16+
ControlMaster auto
17+
ControlPath ~/.ssh/master-%r@%h:%p
18+
ControlPersist 10m
19+
Compression yes
20+
Connecttimeout 10
21+
HashKnownHosts no

hp/hp4/remote-builder.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,17 @@
55
{
66
# https://nix.dev/tutorials/nixos/distributed-builds-setup.html#set-up-the-remote-builder
77
# sudo ssh remotebuild@hp4 -i /root/.ssh/remotebuild "echo hello"
8+
# sudo ssh remotebuild@hp4.home -i /root/.ssh/remotebuild "echo hello"
89
users.users.remotebuild = {
910
isNormalUser = true;
1011
createHome = false;
1112
group = "remotebuild";
1213

13-
openssh.authorizedKeys.keyFiles = [ ./authorizedKeys ];
14+
# openssh.authorizedKeys.keyFiles = [ ./authorizedKeys ];
15+
openssh.authorizedKeys.keys = [
16+
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINjiY/MIQUyp58JXt+fuy1mQWCZfFhbYoRK6jJN5ZxeV root@t"
17+
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMO7liZykpeI/ggPRBXQswdLAZWNWj+h8QA3hzQLi0ai das@hp1"
18+
];
1419
};
1520

1621
users.groups.remotebuild = {};

laptops/t/flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

laptops/t/home.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,9 @@
166166
# https://github.com/bazel-contrib/bazel-gazelle/tags
167167
# https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/by-name/ba/bazel-gazelle/package.nix#L26
168168
unstable.bazel-gazelle
169+
unstable.bazel-buildtools
170+
unstable.bazelisk
171+
# https://github.com/buchgr/bazel-remote - maybe something to look at?
169172

170173
# Debugging/Profiling
171174
graphviz # for pprof
@@ -357,6 +360,8 @@
357360
jnoortheen.nix-ide
358361
#jeff-hykin.better-nix-syntax
359362
rust-lang.rust-analyzer
363+
#bazel
364+
bazelbuild.vscode-bazel
360365
];
361366
};
362367

laptops/t/root_ssh_config

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
host hp4 hp4.home
2+
user remotebuild
3+
IdentityFile ~/.ssh/remotebuild
4+
ServerAliveInterval 10
5+
Protocol 2
6+
#UseRoaming no
7+
ForwardAgent yes
8+
# Modern Key Exchange Algorithms (Kex) - Prioritizes Post-Quantum (if available) and Curve25519
9+
KexAlgorithms sntrup761x25519-sha512@openssh.com,curve25519-sha256@libssh.org,curve25519-sha256,diffie-hellman-group-exchange-sha256
10+
# Modern Ciphers - Prioritizes ChaCha20 and AES-GCM (Authenticated Encryption)
11+
Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com
12+
# Modern MACs - Prioritizes Encrypt-then-MAC (EtM) modes
13+
MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com
14+
# temp hmac-md5
15+
#MACs hmac-sha2-512-etm@openssh.com,hmac-sha2-256-etm@openssh.com,umac-128-etm@openssh.com,hmac-sha2-512,hmac-sha2-256,hmac-md5
16+
ControlMaster auto
17+
ControlPath ~/.ssh/master-%r@%h:%p
18+
ControlPersist 10m
19+
Compression yes
20+
Connecttimeout 10
21+
HashKnownHosts no

0 commit comments

Comments
 (0)