File tree Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Expand file tree Collapse file tree 3 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ rebuild:
1919 sudo nixos-rebuild switch --flake .
2020
2121rebuild_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/
Original file line number Diff line number Diff line change 125125 } ;
126126
127127 # https://nixos.wiki/wiki/Networking
128- networking . hostName = "l " ;
128+ networking . hostName = "l2 " ;
129129
130130 time . timeZone = "America/Los_Angeles" ;
131131
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments