!VhzbGHamdfMiGxpXyg:robins.wtf

NixOS LXC

33 Members
lxc, lxd, incus discussions related to NixOS14 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
8 Feb 2024
@adam:robins.wtfadamcstephens * I use opentofu with incus (and was using it with lxd too) 01:46:09
@aanderse:nixos.devaandersehow much friction do you find in combing these technologies together? at work we are using this and the friction has been higher than i would like01:46:27
@adam:robins.wtfadamcstephens I would rather not use opentofu if I had a native nix alternative.   01:47:24
@aanderse:nixos.devaanderseyou mean like nixops-ish, right?01:47:58
@adam:robins.wtfadamcstephens I actually use terranix though so I’m still writing nix code 01:48:02
@aanderse:nixos.devaandersedoes terranix integrate nicely?01:48:32
@adam:robins.wtfadamcstephens
In reply to @aanderse:nixos.dev
you mean like nixops-ish, right?
I’ve never used nixops, so I’m not too sure about it   
01:48:42
@mkg20001:mkg20001.iomkg20001 nixos-rebuild --flake .#host --target-host root@your-machine is what I use for my machines after they're created 01:50:24
@adam:robins.wtfadamcstephens I think I envision something like microvm.nix that configures what resources incus should have, but then also doesn’t tightly couple the guest configs to the host  01:50:43
@adam:robins.wtfadamcstephens I have a homegrown deployment tool but it’s effectively using nixos rebuild target host  01:51:18
@mkg20001:mkg20001.iomkg20001
In reply to @adam:robins.wtf
I think I envision something like microvm.nix that configures what resources incus should have, but then also doesn’t tightly couple the guest configs to the host 
there is already have the virtualisation.diskSize, etc options from qemu which may be what you want. that could be generalized.
01:52:01
@aanderse:nixos.devaanderseah01:52:12
@aanderse:nixos.devaanderseyeah so i found myself needing terraform resource values in my nixos config... but at the same time needing nixos values inside my terraform config01:53:15
@aanderse:nixos.devaandersethis is something nixops did well01:53:32
@aanderse:nixos.devaandersei hacked a little script together and am trying it out for deployments01:53:59
@aanderse:nixos.devaanderseit pairs colmena and terraform together01:54:18
@aanderse:nixos.devaandersespecifically I'm using it with lxd though01:54:29
@adam:robins.wtfadamcstephens Are you planning to stick with lxd or migrate to incus? 01:55:38
@aanderse:nixos.devaanderseso you write a colmena deploy like normal but you can add terraform in the same file, just write the terraform as nix instead of hcl in addition your nixos gets access to your evaluated terraform objects and your terraform objects get access to you nixos configs01:56:22
@aanderse:nixos.devaandersewe run lxd on Ubuntu we provide our own images so we'll stick to Ubuntu for now because their decisions don't impact us yet we're keeping an eye on the situation though01:57:15
@adam:robins.wtfadamcstephens Ok, so if I float deprecating lxd server on nixos it won’t impact you :) 01:57:51
@aanderse:nixos.devaanderseyeah i mean i kinda wish we could keep both.. but I'll definitely support you if you want to remove it no impact here 01:59:23
@mkg20001:mkg20001.iomkg20001looked at colmena, it's really nice. might switch to it01:59:27
@mkg20001:mkg20001.iomkg20001btw, if anyone has the need to use nixos things on non-nixos to let's say run incus I'm working on a solution for that at work https://github.com/mgit-at/nix-unify02:00:24
@mkg20001:mkg20001.iomkg20001basically just symlinks the systemd services into the host's /etc/systemd, plus some other stuff (adding users, etc)02:00:53

Show newer messages


Back to Room ListRoom Version: 10