!BgJZHVOYkwVcEKLAyM:nixos.org

NixOS Deployments

1227 Members
NixOS Deployment tooling296 Servers

Load older messages


SenderMessageTime
3 Jun 2021
@arianvp:matrix.orgArianHas anybody worked on pull-based deployment models vs push-based? 11:06:39
@arianvp:matrix.orgAriane.g. I want my nodes to query some metadata server periodically and then activate the new config; instead of requiring SSH access to push the configs11:07:02
@arianvp:matrix.orgArianit sounds conceptually easier to set up, esp in things deployed in edge environments or coorporate environments where machines are often not addressable from the outside11:07:42
@arianvp:matrix.orgArian while true; deriv=$(curl https://metadata.local/derivation); nix-store --realise $deriv; $deriv/switch-to-configuration switch; done 11:08:46
@andi:kack.itandi- Arian have you looked at the hail module in nixos? 11:40:21
@arianvp:matrix.orgArianNope. TIL!12:33:36
@linus.heckemann:matrix.mayflower.deLinux HackermanI only recently realised that it's named for "hail hydra"12:37:17
@jez:petrichor.meJez (he/him)🐙12:41:37
@buckley310:matrix.orgBuckley
In reply to @linus.heckemann:matrix.mayflower.de
Buckley: it's not really elegant, but to at least see if the nixpkgs they were built from is up-to-date I usually run `nixops ssh-for-each --parallel nixos-version`
hmmm 🤔 ok. maybe ill go back to morph and see how easy it would be to work this into a custom health check
13:44:17
@ajz229:matrix.orgajz229 joined the room.22:57:29
@ajz229:matrix.orgajz229 set a profile picture.22:59:44
4 Jun 2021
@jez:petrichor.meJez (he/him) left the room.10:44:44
@manveru:matrix.orgmanveru Buckley: another option would be to compare the link /run/current-system with whatever you want to deploy 20:03:14
@buckley310:matrix.orgBuckleyyeah, a manual script that grabs the system paths from morph and checks each system seems like the best option currently20:04:47
@buckley310:matrix.orgBuckleyi've sort of settled on morph. it most closely matches my goals. although its unfortunate they dont natively support flakes yet20:05:51
@manveru:matrix.orgmanveruyeah... i still mostly use good old nixos-rebuild ^^;20:06:28
@buckley310:matrix.orgBuckleylol20:06:36
@buckley310:matrix.orgBuckleyi got to a place where i kind of wanted tagging, and thats just one feature too much for my bash scripts20:07:07
@manveru:matrix.orgmanveruported some of my machines to deploy-rs, and it's also nice, and fully compatible with nixos-rebuild if used with flakes20:07:32
@buckley310:matrix.orgBuckley deploy-rs was actually the first one i tried, but its super feature-bare. like it doesnt have an exec function as far as i can tell 20:08:17
@buckley310:matrix.orgBuckleyto be fair it does exactly one thing pretty well20:08:32
@manveru:matrix.orgmanveruthat's what ssh is for...20:08:40
@manveru:matrix.orgmanveruindeed :)20:08:48
@manveru:matrix.orgmanveruit'd be super simple to write an exec on top of it though20:09:10
@manveru:matrix.orgmanveru ssh nix eval --raw .#deploy.nodes.abaddon.hostname -- echo hi 20:09:53
@manveru:matrix.orgmanverulike an alias for that20:09:56
@buckley310:matrix.orgBuckleyi've been slowly building nixos machines at work, so far nobody has told me to stop it lol, but i'd like to load as much of the work as possible into a tool, so that when people ask how it works i dont hand them a hive of bash scripts20:10:04
@manveru:matrix.orgmanveruuh, matrix doesn't like nesting those quotes20:10:15
@buckley310:matrix.orgBuckley
outer
`inner`
20:10:34
@buckley310:matrix.orgBuckley(just testing what that did ^)20:10:45

There are no newer messages yet.


Back to Room ListRoom Version: 6