17 Aug 2024 |
adamcstephens | yeah i just removed it yesterday | 12:43:02 |
adamcstephens | i think it'll roll off after a few days | 12:43:36 |
adamcstephens | ugh, i made the incus image squashfs but that builder puts the file directly in the store without an $out dir | 12:45:09 |
hexa | cool | 12:45:22 |
adamcstephens | https://github.com/NixOS/nixpkgs/pull/335366 | 13:07:44 |
adamcstephens | reviews appreciated :) | 13:07:56 |
| aurbrunet joined the room. | 21:54:58 |
31 Aug 2024 |
| Saturn joined the room. | 19:43:11 |
6 Sep 2024 |
Saturn | Is there anything for Incus on NixOS for declarative containers, VMs, and possibly even declarative NixOS-based containers? I am currently using NixOS Containers (systemd-nspawn) for a lot of things, but it is really lacking in a lot of areas, and I have recently been exploring Incus, and I am really liking it over all, so I am just curious if it has the potential to replace my current setup. | 03:37:26 |
adamcstephens | I use terraform to declare instances, which I then treat as standalone nixos installs | 03:41:51 |
adamcstephens | It’s not my favorite but with terranix can be somewhat integrated into a nix repo. Otherwise no there’s nothing nix specific out there I know of | 03:45:35 |
Saturn | Hmm. I honestly have no experience with terraform | 03:45:44 |
Saturn | In reply to @adam:robins.wtf I use terraform to declare instances, which I then treat as standalone nixos installs How does this process work? Are you able to provide some more details? | 03:46:30 |
adamcstephens | https://registry.terraform.io/providers/lxc/incus/latest/docs | 03:48:03 |
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 |