Skip to content

Commit 27b5c24

Browse files
l2
1 parent fbba16c commit 27b5c24

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

desktop/l2/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ rebuild:
1919
sudo nixos-rebuild switch --flake .
2020

2121
rebuild_t:
22-
sudo nixos-rebuild switch --flake .#t
22+
sudo nixos-rebuild switch --flake .#l2
2323

2424
#https://nixos.org/manual/nixos/unstable/index.html#sec-nix-network-issues
2525
#nixos-rebuild switch --option binary-caches http://my-cache.example.org/

desktop/l2/configuration.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
};
126126

127127
# https://nixos.wiki/wiki/Networking
128-
networking.hostName = "l";
128+
networking.hostName = "l2";
129129

130130
time.timeZone = "America/Los_Angeles";
131131

hp/hp4/remote-builder.nix

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,30 @@
1515
openssh.authorizedKeys.keys = [
1616
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINjiY/MIQUyp58JXt+fuy1mQWCZfFhbYoRK6jJN5ZxeV root@t"
1717
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMO7liZykpeI/ggPRBXQswdLAZWNWj+h8QA3hzQLi0ai das@hp1"
18+
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIBUWTELKL25XhSi+le+KNqaeAQvZ4Sh0/+lmRpiJzKn root@l"
1819
];
1920
};
2021

2122
users.groups.remotebuild = {};
2223

23-
nix.settings.trusted-users = [ "remotebuild" ];
24-
}
24+
# https://nix.dev/tutorials/nixos/distributed-builds-setup.html#optimise-the-remote-builder-configuration
25+
# nix.settings.trusted-users = [ "remotebuild" ];
26+
nix = {
27+
nrBuildUsers = 64;
28+
settings = {
29+
trusted-users = [ "remotebuild" ];
30+
31+
min-free = 10 * 1024 * 1024;
32+
max-free = 200 * 1024 * 1024;
33+
34+
max-jobs = "auto";
35+
cores = 0;
36+
};
37+
};
38+
39+
systemd.services.nix-daemon.serviceConfig = {
40+
MemoryAccounting = true;
41+
MemoryMax = "90%";
42+
OOMScoreAdjust = 500;
43+
};
44+
}

0 commit comments

Comments
 (0)