gchristensen changed the topic of #nixops to: NixOps related talk | logs: https://logs.nix.samueldr.com/nixops/ https://meet.jit.si/NixOpsReview
teto1 has quit [Ping timeout: 246 seconds]
<DigitalKiwi> am getting an error there
<DigitalKiwi> it says the config_type is not a class, but i print it and it is
<DigitalKiwi> it's not even raising that TypeError the issubclass fails
raghavsood has quit [Remote host closed the connection]
pbb has quit [Remote host closed the connection]
pbb has joined #nixops
<energizer> DigitalKiwi: post what you're seeing
cole-h has quit [Quit: Goodbye]
pbb has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
pbb has joined #nixops
<colemickens> I am so lost trying to start out with nixops
<colemickens> are the various cloud plugins included?
<colemickens> I see. It looks like the nixops-* have pyproject.toml's that pull nixops in
ixxie has joined #nixops
meh` has joined #nixops
ixxie has quit [Ping timeout: 246 seconds]
ixxie has joined #nixops
ixxie has quit [Ping timeout: 256 seconds]
<DigitalKiwi> energizer: https://dpaste.org/P2Rh
<chiiba> Is NixOS version to-be-deployed dependant on the NixOps version used for deploying?
<gchristensen> no, it is dependent upon the version of nixos in the NIX_PATH of the deployer
<chiiba> Ah, thank you :)
meh` has quit [Ping timeout: 264 seconds]
meh` has joined #nixops
robodojo has joined #nixops
cole-h has joined #nixops
ixxie has joined #nixops
<ixxie> gchristensen: are you around?
<gchristensen> barely :) what's up?
<ixxie> I did quite a bit of type hinting etc.
meh` has quit [Ping timeout: 264 seconds]
<ixxie> You can see the mypy results in the previous comment as well
<gchristensen> okay
<gchristensen> okay
<gchristensen> https://github.com/Kiwi/nixops-digitalocean/pull/1/files#diff-7728ab19431591451cc80ce14d485f41R53 this config is extending the configuration of the `deployment` attrset directly
<gchristensen> you need to create a nested MachineOptions to represent the nested "droplet" option, like this: https://github.com/input-output-hk/nixops-packet/blob/886e36e475b2267af697197813865a0c55e13b75/nixops_packet/backends/device.py#L43-L52
<gchristensen> ixxie: make sense?
<ixxie> right I think I follow
<ixxie> but then this is not modelling a droplet
<ixxie> rather I am modelling a Digital Ocean deployment
<ixxie> which can have various resources in it?
<gchristensen> I'm just referring to the machine options
<ixxie> right, so I just nest it once to mirror the attribute set structure
<gchristensen> right
<ixxie> gchristensen: is the packet plugin fully updated? Im looking for a reference implementation
<ixxie> there are some things I am also wondering about, like naming best practices
<gchristensen> I believe it is
<ixxie> cool
<gchristensen> I'm seeing some naming problems, though, for example I shoudln't have copypasta'd MyMachineOptions :P
<ixxie> heh yeah
<ixxie> What I wonder is whether the Nix options should be named with a prefix of the cloud provider
<gchristensen> oh
<ixxie> like, doVolume, doFloatingIp, etc
<gchristensen> no, but should be nested under a provider-specific attrset for sure
<gchristensen> oh you mean the other Resources?
<ixxie> right, that established the name spacing
<ixxie> yeah
<gchristensen> yeah that would be good for the other resources
<ixxie> because a lot of stuff has generic names
<ixxie> and then, why not also prefix the machine name too?
<gchristensen> the machine's name is the hostname
<gchristensen> not part of the backend determination
<gchristensen> nixops uses deployment.targetEnv to determine the host's backend, but resources.«resourcetypebackend».«name»
<ixxie> I gues that's what I mean
<ixxie> the naming of the target environment
<ixxie> it seems like it would be good if all resources including the target environment contained the same prefix
<ixxie> or is that superfluous?
<gchristensen> not sure
<gchristensen> and a bigger discussion than I'm really here :)
<ixxie> okedoke
<ixxie> gchristensen: I'll add these thoughts to the notes I am making
meh` has joined #nixops
meh` has quit [Ping timeout: 240 seconds]
meh` has joined #nixops
<ixxie> DigitalKiwi: you around?
<energizer> DigitalKiwi: print(repr(config_type), repr(ResourceOptions))
<gchristensen> I think I remember seeing this ... what was the fix .... hm
<ixxie> It seems this may be an issue with NixOps rather than the plugin
<ixxie> ?
meh` has quit [Ping timeout: 246 seconds]
meh` has joined #nixops
ixxie has quit [Ping timeout: 260 seconds]
<DigitalKiwi> ixxie left again :(
aminechikhaoui has quit [*.net *.split]
17WAA85G0 has quit [*.net *.split]
srk has quit [*.net *.split]
srk has joined #nixops
17WAA85G0 has joined #nixops
aminechikhaoui has joined #nixops
aszlig_ has quit [*.net *.split]
n3t has quit [*.net *.split]
n3t has joined #nixops
aszlig_ has joined #nixops
b42 has quit [*.net *.split]
{^_^} has quit [*.net *.split]
sevanspowell has quit [*.net *.split]
wirew0rm has quit [*.net *.split]
JJJollyjim has quit [*.net *.split]
colemickens has quit [*.net *.split]
gregf has quit [*.net *.split]
feepo has quit [*.net *.split]
b42 has joined #nixops
sevanspowell has joined #nixops
wirew0rm has joined #nixops
{^_^} has joined #nixops
gregf has joined #nixops
JJJollyjim has joined #nixops
colemickens has joined #nixops
feepo has joined #nixops
globin has quit [*.net *.split]
typetetris has quit [*.net *.split]
typetetris has joined #nixops
globin has joined #nixops
ornxka_ has quit [*.net *.split]
ornxka_ has joined #nixops
colemickens has quit [Max SendQ exceeded]
gregf has quit [Ping timeout: 253 seconds]
danderson has quit [*.net *.split]
JJJollyjim has quit [Ping timeout: 250 seconds]
feepo has quit [Ping timeout: 250 seconds]
hpfr[m] has quit [Ping timeout: 244 seconds]
danderson has joined #nixops
abathur has quit [*.net *.split]
aanderse has quit [Ping timeout: 244 seconds]
tokudan[m] has quit [Ping timeout: 244 seconds]
NobbZ[m] has quit [Ping timeout: 244 seconds]
Cadey has quit [*.net *.split]
asymmetric has quit [*.net *.split]
gleber has quit [*.net *.split]
kalbasit has quit [*.net *.split]
abathur has joined #nixops
Cadey has joined #nixops
gleber has joined #nixops
asymmetric has joined #nixops
kalbasit has joined #nixops
meh` has quit [*.net *.split]
robodojo has quit [*.net *.split]
tokudan has quit [*.net *.split]
pinkieval has quit [*.net *.split]
adisbladis has quit [*.net *.split]
adisbladis has joined #nixops
tokudan has joined #nixops
robodojo has joined #nixops
meh` has joined #nixops
dongcarl has quit [*.net *.split]
johnny101 has quit [*.net *.split]
cole-h has quit [*.net *.split]
energizer has quit [*.net *.split]
dmj` has quit [Ping timeout: 272 seconds]
craige has quit [*.net *.split]
andi- has quit [*.net *.split]
njha has quit [*.net *.split]
pinkieval has joined #nixops
energizer has joined #nixops
dongcarl has joined #nixops
johnny101 has joined #nixops
cole-h has joined #nixops
andi- has joined #nixops
craige has joined #nixops
njha has joined #nixops
kalbasit has quit [Ping timeout: 246 seconds]
chiiba has quit [*.net *.split]
exarkun has quit [*.net *.split]
genevino has quit [*.net *.split]
hplar has quit [*.net *.split]
gleber has quit [Ping timeout: 246 seconds]
pbb has quit [*.net *.split]
ehmry has quit [*.net *.split]
davidtwco has quit [*.net *.split]
manveru has quit [*.net *.split]
gchristensen has quit [*.net *.split]
GlennS has quit [*.net *.split]
samueldr has quit [*.net *.split]
chiiba has joined #nixops
hplar has joined #nixops
exarkun has joined #nixops
sparogy has quit [Remote host closed the connection]
samueldr has joined #nixops
gchristensen has joined #nixops
ehmry has joined #nixops
GlennS has joined #nixops
pbb has joined #nixops
manveru has joined #nixops
clever has quit [*.net *.split]
infinisil has quit [*.net *.split]
infinisil has joined #nixops
clever has joined #nixops
genevino has joined #nixops
gleber has joined #nixops
gleber has joined #nixops
gleber has quit [Changing host]
cptMikky has quit [*.net *.split]
pistache has quit [*.net *.split]
pistache has joined #nixops
cptMikky has joined #nixops
davidtwco has joined #nixops
davidtwco has joined #nixops
davidtwco has quit [Changing host]
e has quit [*.net *.split]
xe4 has quit [*.net *.split]
e has joined #nixops
xe4 has joined #nixops
gregf has joined #nixops
dmj` has joined #nixops
kalbasit has joined #nixops
JJJollyjim has joined #nixops
artemist has joined #nixops
feepo has joined #nixops
abathur has quit [*.net *.split]
abathur has joined #nixops
NobbZ[m] has joined #nixops
sparogy has joined #nixops
hpfr[m] has joined #nixops
colemickens has joined #nixops
aanderse has joined #nixops
tokudan[m] has joined #nixops
chiiba has quit [Ping timeout: 265 seconds]
chiiba has joined #nixops
clever has quit [Ping timeout: 272 seconds]
<colemickens> does the new nixops plugin model prevent having a nixops binary that supports multiple clouds?
<gchristensen> no
<gchristensen> create a pyproject.toml which depends on nixops and multiple plugins
teto1 has joined #nixops
bhipple has joined #nixops
johnny101m has joined #nixops
clever has joined #nixops