6 Sep 2024 |
adamcstephens | Add those resources to a terraform config. Though if you don’t know terraform you’ll need to work through learning that part. Plenty of resources including official docs can hopefully get you started | 03:49:03 |
Saturn | In reply to @adam:robins.wtf I use terraform to declare instances, which I then treat as standalone nixos installs
which I then treat as standalone nixos installs My main thing with this is since my nix repo is private it'd be a bit annoying to clone it into each container, and also managing secrets.
| 03:53:17 |
Saturn | In reply to @adam:robins.wtf I use terraform to declare instances, which I then treat as standalone nixos installs *
which I then treat as standalone nixos installs My main thing with this is since my nix repo is private it'd be a bit annoying to clone it into each container, and also managing secrets.
| 03:53:21 |
Saturn | *
which I then treat as standalone nixos installs
My main thing with this is since my nix repo is private it'd be a bit annoying to clone it into each container, and also managing secrets.
| 03:53:28 |
adamcstephens | you can push configs, even with nixos-rebuild --target-host | 03:54:28 |
Saturn | Right just remembered that | 03:54:43 |
adamcstephens | there are other deployment tools | 03:54:51 |
adamcstephens | most in fact are push based | 03:55:01 |
Saturn | Yeah I suppose it wouldn't be to terrible to manage | 03:55:14 |
adamcstephens | i've never used nixos containers personally. so i really don't have any comparison | 03:55:59 |
Saturn | I did come across this project recently: https://github.com/bketelsen/incus-compose
I wonder if this projects get more stable we could make use of it in Nix to generate "incus-compose" and deploy it | 03:57:14 |
Saturn | In reply to @adam:robins.wtf i've never used nixos containers personally. so i really don't have any comparison I've been using it for just about all of my stuff and it is a huge pain sometimes | 03:57:38 |
adamcstephens | incus-compose looks interesting, and generating yaml is no problem :) | 03:59:23 |
Saturn | In reply to @adam:robins.wtf incus-compose looks interesting, and generating yaml is no problem :) Yep that's what I figured. If it get's stable enough I may attempt to create something to define incus-compose in Nix and have them be deployed | 04:00:23 |
adamcstephens | bringing things up is always pretty easy. it's the tear down and ensuring no drift that's harder | 04:00:30 |
adamcstephens | i have a semi-cursed module to auto apply terraform code from nix, but i haven't been daring enough to use it for the incus instances :) | 04:01:20 |
adamcstephens | happy to talk about this stuff any time, but i need to get some sleep for now. 👋 | 04:01:52 |
Saturn | In reply to @adam:robins.wtf happy to talk about this stuff any time, but i need to get some sleep for now. 👋 Yep I should probably do the same | 04:02:35 |
Saturn | I appreciate it | 04:02:49 |
7 Sep 2024 |
adamcstephens | fyi incus non-lts is currently broken on unstable due to the qemu 9.1 upgrade | 14:04:07 |
adamcstephens | * fyi incus non-lts is currently broken for VMs on unstable due to the qemu 9.1 upgrade | 14:04:48 |
adamcstephens | ugh, and the database schema version has been bumped so can't even roll back | 14:06:05 |
adamcstephens | * ugh, and the database schema version has been bumped so can't even downgrade to lts | 14:06:28 |
adamcstephens | k, i think this set of patches should fix it https://github.com/NixOS/nixpkgs/pull/340150 | 14:45:32 |
hexa | incus tests as passthru tests in qemu | 15:25:14 |
adamcstephens | Yeah I’m considering it. There’s a VM test just for such reasons | 16:38:38 |
adamcstephens | Though it could delay the qemu bump waiting on incus to fix compat. May still be worth it | 16:39:55 |
8 Sep 2024 |
adamcstephens | grrr, why are there zero tests for all this edk2 firmware detection and manipulation logic in incus, when it's critical to get right for a VM to boot | 12:32:55 |
adamcstephens | in case anybody else wants either of these new features, i started to add them but am giving up for now on both. | 15:43:38 |
adamcstephens | https://github.com/NixOS/nixpkgs/pull/340542 | 15:43:39 |