gchristensen changed the topic of #nixops to: NixOps related talk | logs: https://logs.nix.samueldr.com/nixops/ https://meet.jit.si/NixOpsReview
kalbasit has quit [Ping timeout: 260 seconds]
<johnny101> adisbladis: re: nixpkgs PR#83548 (nixops2Unstable), is there a recommended design pattern for:
<johnny101> adisbladis: an expression to build nixops2 using predefined plugins from that PR plus other external nixops2 plugins (ex: packet, digitalocean, etc)?
<johnny101> adisbladis: I see how I can include external plugin fetchgit refs via override: `(nixops2Unstable.override { inherit overrides; }).withPlugins`, but
<johnny101> adisbladis: I don't see an easy way to inject the corresponding external plugin dependencies into the predefined PR toml and lock list consumed by mkPoetryPackages.
<johnny101> adisbladis: Is this possible the way the PR is currently? If it is, can you give me a few sentences of high-level direction so I can chip away at it?
kalbasit has joined #nixops
trash_mapache has joined #nixops
kalbasit has quit [Remote host closed the connection]
trash_mapache22 has joined #nixops
trash_mapache has quit [Ping timeout: 260 seconds]
hplar has quit [Ping timeout: 240 seconds]
abathur has quit [Quit: abathur]
kalbasit has joined #nixops
trash_mapache22 has quit [Quit: Leaving]
kalbasit has quit [Remote host closed the connection]
kalbasit has joined #nixops
kalbasit has quit [Ping timeout: 240 seconds]
<typetetris> johnny101 Thanks for pointing to that pr
cole-h has quit [Quit: Goodbye]
mananamenos has joined #nixops
glowpelt has joined #nixops
meh` has joined #nixops
pbb_ has joined #nixops
pbb_ has quit [Client Quit]
meh` has quit [Ping timeout: 256 seconds]
meh` has joined #nixops
meh` has quit [Ping timeout: 240 seconds]
meh` has joined #nixops
meh` has quit [Ping timeout: 246 seconds]
mananamenos has quit [Ping timeout: 260 seconds]
mananamenos has joined #nixops
<johnny101> typetetris: Welcome! Here's a small poc repo using that PR and providing a legacy custom nixops we use, and a new nixops2 from that PR:
<johnny101> typetetris: In there, you can see that the legacy one mixes pre-defined plugins with external/custom plugins. But I'm not seeing how to do similar with the new PR.
<johnny101> typetetris: For now, the approach of just building our own complete definition for all plugins wanted will work
<johnny101> typetetris: but if there is a nixops2[Unstable].withPlugins in nixpkgs, it would be nice to be able to use both predefined and external plugins if possible, like legacy plugins.
<adisbladis> johnny101: You can: `nixops2Unstabl.withPlugins(ps: [ ps.somePlugin (ps.callPackage /path/to/plugin {}) ])`
<adisbladis> It's not entirely obvious, but the package set referenced in the withPlugins function is an extension of pythonPackages
mananamenos_ has joined #nixops
mananamenos has quit [Ping timeout: 265 seconds]
mananamenos has joined #nixops
mananamenos_ has quit [Ping timeout: 256 seconds]
<johnny101> adisbladis: ah! So my assumption that the PR toml/lock files would need to be modified is wrong. This is pretty much the same way as before then. Nice!
<typetetris> Cool, that would be awesome, if it was in some documentation or so!
<johnny101> typetetris: happy to contribute some documentation but want a working example not already in the predefined list first :).
<johnny101> typetetris: the digitalocean plugin builds ok, but doesn't show up in the list-plugins call; might be a bug in the digitalocean plugin
<johnny101> typetetris: the packet plugin has a build collision with the binaries I need to look into
<johnny101> typetetris: but once the bugs are worked out, should just be a one-liner to callPackage referencing either local source, or fetchgit source as adisbladis mentions as I understand it.
<johnny101> typetetris: will chip away at it and post further when I have more working.
meh` has joined #nixops
ehmry_ has joined #nixops
cole-h has joined #nixops
ehmry_ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
buffet has quit [Ping timeout: 260 seconds]
cole-h has quit [Quit: Goodbye]
cole-h has joined #nixops
meh` has quit [Ping timeout: 240 seconds]
cole-h_ has joined #nixops
cole-h has quit [Ping timeout: 260 seconds]
buffet has joined #nixops
abathur has joined #nixops
mananamenos_ has joined #nixops
mananamenos has quit [Ping timeout: 240 seconds]
cole-h_ has quit [Quit: Goodbye]
17WAA85G0 has quit [Ping timeout: 258 seconds]
meatcar_ has joined #nixops
ehmry_ has joined #nixops
b42 has quit [Quit: WeeChat 2.7.1]
hplar has joined #nixops