3 Oct 2021 |
ryantm | Can we just use nixos-rebuild --target-host ? | 20:25:36 |
ryantm | * Can we just use nixos-rebuild --target-host ? | 20:25:54 |
4 Oct 2021 |
Jonas Chevalier | since we're not depending on /var/keys anymore, it gives us a lot of freedom | 10:07:55 |
Mic92 | Is it possible to do nixos-rebuild --target-host in parallel somehow? | 12:59:18 |
Mic92 | I also see agenix and sops-nix as the big equalizer between all those deployment tools. | 12:59:49 |
Mic92 | One could almost use make for that I just don't like how it is behaving on errors. | 13:00:34 |
Jonas Chevalier | are you thinking make -J $(nproc) deploy ? | 13:52:12 |
Jonas Chevalier | xargs and parallel are also fine | 13:52:56 |
Jonas Chevalier | we just need a small ./deploy.sh <hostname> <action> wrapper script that invokes nixos-rebuild --target-host "$1" "$2" under the hood | 13:54:53 |
Mic92 | How would one prefix the output of each deployment node? Can xargs or parallel do this? | 14:16:51 |
Jonas Chevalier | That could be the responsibility of the ./deploy.sh script? nixos-rebuild ... &| sed "s|^|[$1]: " ? | 14:59:22 |
@andi:kack.it | That sounds like Make targets that you could invoke with -j N for parallel deployments. It comes with all the benefits and downsides of Makefiles but at least you don't have to worry about sync manually. | 15:02:38 |
Mic92 | The closest I found to make but for deployments is https://github.com/pressly/sup | 15:44:45 |
Mic92 | Ideally it would also upload code with rsync. | 15:45:09 |
Mic92 | Than we would not need download all machines packages just to upload them afterwards again. It would also work nicely with arm64 | 15:45:40 |
ryantm | Mic92: How about also using nixos-rebuild --build-host ? | 16:07:33 |
Mic92 | ryantm: this is as slow as using morph but has a less flexible interface. | 16:26:15 |
Mic92 | and worse logging output | 16:26:22 |
6 Oct 2021 |
| Rosario Pulella changed their display name from rosariopulella to Rosuavio. | 10:38:18 |
| Rosario Pulella changed their display name from Rosuavio to Rosario Pulella. | 10:44:45 |
| kamadorueda joined the room. | 22:31:28 |
7 Oct 2021 |
Mic92 | wow. NUR has now 171 repos | 09:51:08 |
Mic92 | And I feel like growth is accellerating. | 09:51:24 |
Jonas Chevalier | is it because it's providing the CI? | 10:16:03 |
Mic92 | Yeah, I feel like having a template and tutorial makes it very accessible. | 12:24:51 |
Mic92 | But I actually don't spend a lot of time on improving anything. | 12:25:18 |
Mic92 | I guess at some point also the network effect kicks in. | 12:25:53 |
Jonas Chevalier | yeah, that's what I learned with direnv as well :) | 13:47:46 |
Jonas Chevalier | if you're around long enough and it's useful, people will eventually pick it up | 13:48:19 |
8 Oct 2021 |
colemickens 🏳️🌈 | is nix-build-uncached able to move to nix build now, and if so, would you just merge that or want a flag for back compat or? | 05:32:07 |