gchristensen changed the topic of #nixops to: NixOps related talk | logs: https://logs.nix.samueldr.com/nixops/ https://meet.jit.si/NixOpsReview
hoverbear has joined #nixops
abathur has joined #nixops
hoverbear has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
ixxie has joined #nixops
meh` has joined #nixops
colemickens has quit [Quit: killed]
NobbZ[m] has quit [Quit: killed]
hpfr[m] has quit [Quit: killed]
aanderse has quit [Quit: killed]
JJJollyjim has quit [Quit: killed]
tokudan[m] has quit [Quit: killed]
sparogy has quit [Quit: killed]
tokudan[m] has joined #nixops
meh` has quit [Ping timeout: 265 seconds]
JJJollyjim has joined #nixops
hpfr[m] has joined #nixops
colemickens has joined #nixops
sparogy has joined #nixops
aanderse has joined #nixops
NobbZ[m] has joined #nixops
ixxie has quit [Ping timeout: 256 seconds]
ixxie has joined #nixops
ixxie has quit [Ping timeout: 264 seconds]
ixxie has joined #nixops
teto has joined #nixops
dongcarl has quit [Quit: Ping timeout (120 seconds)]
dongcarl has joined #nixops
<ixxie> hello folks; where can I find information about the nixops backends?
<ixxie> In particular, the digital ocean backend?
meh` has joined #nixops
<ixxie> :(
<gchristensen> hey ixxie adisbladis and I have both been pretty swamped the last 1-2wks and haven't been paying such close attention
<gchristensen> let me grep my logs for something ...
<gchristensen> I bet (you or I) could get https://github.com/Kiwi/nixops-digitalocean/tree/digitalocean working against nixops master with a few hour sof work
<ixxie> thanks for taking the time gchristensen! I was looking at that discourse link, in particular tomberek's example repo linked there (https://github.com/tomberek/digital-nix)
<ixxie> but something goes wrong with the authToken
<ixxie> gchristensen: why would I need to get the plugin to work against master? At the moment, the DO stuff seems to work on 1.7, assuming the authToken thing is not a bug
<ixxie> (I would be happy to contribute in any way I can of course)
<gchristensen> ah okay
<gchristensen> so master has undergone a fairly big change in terms of API
<ixxie> right, to the DO plugin would need to be updated accordingly
<gchristensen> yea
abathur has quit [Quit: abathur]
<ixxie> gchristensen: maybe ill give it a shot after dinner. Got any docs, examples, PRs or other clues that would help me figure out how to do this? :D
<gchristensen> awesome :) uhh
<gchristensen> ixxie: I think this is up to date: https://nixops.readthedocs.io/en/latest/plugins/authoring.html and if it isn't, we could work together to fix it
<ixxie> alright, lets give it a go gchristensen
<ixxie> first question: does this autoversioning magic port into the pyproject.toml / poetry world? https://github.com/Kiwi/nixops-digitalocean/blob/digitalocean/setup.py#L8
<energizer> ixxie: usually those @foobar@ things are replaced statically by substituteAll, in which case i wouldn't think the file type would matter
<ixxie> energizer: I guess substituteInPlace is similar?
<energizer> or that. yeah i just mean one of the substitute* functions
<gchristensen> ixxie: no, delete that and just write the version number directly in the pyprojec.teml
cole-h has joined #nixops
<ixxie> alright
<ixxie> gchristensen: but then again, that would go against their release process: https://github.com/Kiwi/nixops-digitalocean/blob/digitalocean/release.nix
<ixxie> gchristensen: so I think I can also follow energizer's advice and substitute the toml file for the setup file in that prePatch step
<gchristensen> delete the release.nix
<gchristensen> use the default.nix and shell.nix described in that authoring.nix
<ixxie> aah right
<ixxie> okay
<ixxie> didn't get that far :D
<gchristensen> :)
<ixxie> anybody know who if this person is on IRC: https://github.com/Kiwi
<ixxie> and if so, what their nickname is?
<ixxie> it would probably be good to coordinate a bit with the owner of the repo
<cole-h> DigitalKiwi IIRC
<cole-h> Yeah, DigitalKiwi. They're in #nixos and #-chat
<cole-h> (At the very least)
<ixxie> cool, cheers
<ixxie> gchristensen: since it seems the plugin version mirrors the nixops version, I need to project what the version number of nixops will be
<ixxie> gchristensen: is it 2.0?
<gchristensen> it will be 2.0
<ixxie> cooleo
<gchristensen> right now it is still 1.8 in master??
<cole-h> s/??/
nuncanada has joined #nixops
meh` has quit [Ping timeout: 264 seconds]
<ixxie> gchristensen: so something along these lines: https://gist.github.com/ixxie/a002a0a23c8f8d6a406d36e2ae74b7d1
<ixxie> gchristensen: still wondering if I accounted for everything here...
<gchristensen> ixxie: looking good from here, but I wouldn't guarantee you got it 100%
<gchristensen> but it is certainly good enough to keep going
<ixxie> onwards, Nixy soldiers
<ixxie> gchristensen: the python code here is not really XML based, as the authoring guide depicts the 'old style plugin': https://github.com/Kiwi/nixops-digitalocean/blob/master/nixopsdigitalocean/backends/digital_ocean.py
<ixxie> gchristensen: would MachineState map to MachineOptions in this case?
<gchristensen> no MachineState remains MachineState
<ixxie> so Definition splits
<gchristensen> you make a very simple typed representation of the Definition's supported options
<gchristensen> yeah
<gchristensen> have you setup mypy yet?
<gchristensen> you'll want mypy :)
<ixxie> on it :)
<ixxie> gchristensen: I take it these get_type classmethods are deprecated?
<gchristensen> I think those are still required -- did something make it seem like you didn't need them?
<ixxie> gchristensen: gchristensen: well, important notes, section 5, about how to port the subclasses, is very minimal. It may be clear to people who have previously worked with NixOps, but I am a total noob so its hard to tell
<gchristensen> gotcha
<gchristensen> I don't suppose you could take notes about what you're doing, what you're confused by, what you discover, etc?
cole-h has quit [Quit: Goodbye]
<ixxie> gladly!
<gchristensen> thank you
cole-h has joined #nixops
cole-h has quit [Client Quit]
cole-h has joined #nixops
cole-h has quit [Client Quit]
cole-h has joined #nixops
cole-h has quit [Client Quit]
cole-h has joined #nixops
cole-h has quit [Quit: Goodbye]
<ixxie> gchristensen: I'll keep updating as I go
<ixxie> gchristensen: I did omit notes from stuff which was very clear / obvious to avoid verbosity
abathur has joined #nixops
<gchristensen> thanks :)
ixxie has quit [Quit: Lost terminal]