gchristensen changed the topic of #nixops to: NixOps related talk | logs: https://logs.nix.samueldr.com/nixops/ https://meet.jit.si/NixOpsReview
cole-h has joined #nixops
gregf has left #nixops [#nixops]
cole-h has quit [Quit: Goodbye]
lordcirth__ has joined #nixops
lordcirth_ has quit [Ping timeout: 260 seconds]
kalbasit has quit [Ping timeout: 240 seconds]
teto has joined #nixops
<jD91mZM2> DigitalKiwi: What do you mean Black format Nix code? Black seems to be a python formatter, right? Not a general formatter?
<jD91mZM2> nixpkgs-fmt is a good Nix formatter if you're looking for one
<JJJollyjim> not sure if i'm understanding here, but a real annoying problem for me is that the python code embedded in nixos test files is required to be black-formatted
<JJJollyjim> but no tools will let me automatically do that
teto has quit [Quit: WeeChat 2.9]
* DigitalKiwi adds to list
<DigitalKiwi> jD91mZM2: i know. i mean they use black to format python. they don't use nixpkgs-fmt or nixfmt on the nix. i don't know why they don't
meh` has joined #nixops
<DigitalKiwi> JJJollyjim: i found a way that kind of works (and started a program that might work better if i finish it...)
<DigitalKiwi> the kind of works is you either have to shift the text or use those cut and sed...
<JJJollyjim> Nice haha
<DigitalKiwi> works in vim or evil mode
<JJJollyjim> I'm betting I can do some magic with mmm-mode in emacs, to get syntax highlighting and stuff there too
<DigitalKiwi> the program would automatically detect how many spaces there are
<JJJollyjim> I can never figure out how '' strings actually work
<DigitalKiwi> if you don't want to count the easy way is just to highlight the text and < it until it's flush and then !black -q -
<JJJollyjim> Sometimes I end up with spaces before my #! in embedded scripts, sometimes I don't
<DigitalKiwi> do you have examples
<jD91mZM2> JJJollyjim: It cuts all the common whitespace from the literal string, but ignores the whitespace of all interpolated variables
<jD91mZM2> also I suppose you gotta make sure tabs and spaces aren't accidentally mixed
cole-h has joined #nixops
kalbasit has joined #nixops
cole-h has quit [Quit: Goodbye]
<DigitalKiwi> ooh this one is fun
<DigitalKiwi> nixops destroy -d builder ; where builder is configured as a distributed builder... guess what it tries to do :D
<DigitalKiwi> first it deletes the machine, and then it tries to build on it
<DigitalKiwi> is this a bug
<DigitalKiwi> or is this just pebcak
meh` has quit [Remote host closed the connection]