!PbtOpdWBSRFbEZRLIf:numtide.com

Nix Community Projects

551 Members
Meta discussions related to https://nix-community.org. (For project specific discussions use github issues or projects own matrix channel). Need help from an admin? Open an issue on https://github.com/nix-community/infra/issues146 Servers

Load older messages


SenderMessageTime
3 Oct 2021
@ryantm:matrix.orgryantmCan we just use nixos-rebuild --target-host ?20:25:36
@ryantm:matrix.orgryantm * Can we just use nixos-rebuild --target-host ? 20:25:54
4 Oct 2021
@zimbatm:numtide.comJonas Chevaliersince we're not depending on /var/keys anymore, it gives us a lot of freedom10:07:55
@mic92:nixos.devMic92Is it possible to do nixos-rebuild --target-host in parallel somehow?12:59:18
@mic92:nixos.devMic92I also see agenix and sops-nix as the big equalizer between all those deployment tools.12:59:49
@mic92:nixos.devMic92One could almost use make for that I just don't like how it is behaving on errors.13:00:34
@zimbatm:numtide.comJonas Chevalier are you thinking make -J $(nproc) deploy? 13:52:12
@zimbatm:numtide.comJonas Chevalier xargs and parallel are also fine 13:52:56
@zimbatm:numtide.comJonas 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:nixos.devMic92How would one prefix the output of each deployment node? Can xargs or parallel do this?14:16:51
@zimbatm:numtide.comJonas Chevalier That could be the responsibility of the ./deploy.sh script? nixos-rebuild ... &| sed "s|^|[$1]: "? 14:59:22
@andi:kack.it@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:nixos.devMic92The closest I found to make but for deployments is https://github.com/pressly/sup15:44:45
@mic92:nixos.devMic92Ideally it would also upload code with rsync.15:45:09
@mic92:nixos.devMic92Than we would not need download all machines packages just to upload them afterwards again. It would also work nicely with arm6415:45:40
@ryantm:matrix.orgryantm Mic92: How about also using nixos-rebuild --build-host? 16:07:33
@mic92:nixos.devMic92ryantm: this is as slow as using morph but has a less flexible interface.16:26:15
@mic92:nixos.devMic92and worse logging output16:26:22
6 Oct 2021
@rosariopulella:matrix.orgRosario Pulella changed their display name from rosariopulella to Rosuavio.10:38:18
@rosariopulella:matrix.orgRosario Pulella changed their display name from Rosuavio to Rosario Pulella.10:44:45
@kamadorueda:matrix.orgkamadorueda joined the room.22:31:28
7 Oct 2021
@mic92:nixos.devMic92wow. NUR has now 171 repos09:51:08
@mic92:nixos.devMic92And I feel like growth is accellerating.09:51:24
@zimbatm:numtide.comJonas Chevalieris it because it's providing the CI?10:16:03
@mic92:nixos.devMic92Yeah, I feel like having a template and tutorial makes it very accessible.12:24:51
@mic92:nixos.devMic92But I actually don't spend a lot of time on improving anything.12:25:18
@mic92:nixos.devMic92I guess at some point also the network effect kicks in.12:25:53
@zimbatm:numtide.comJonas Chevalieryeah, that's what I learned with direnv as well :)13:47:46
@zimbatm:numtide.comJonas Chevalierif you're around long enough and it's useful, people will eventually pick it up13:48:19
8 Oct 2021
@colemickens:matrix.orgcolemickens 🏳️‍🌈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

There are no newer messages yet.


Back to Room ListRoom Version: 6