!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 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
@adam:robins.wtfadamcstephens I’m not opposed to keeping lxd in tree, but I wont be running it anymore so someone else would need to step up to own it   02:00:58
@adam:robins.wtfadamcstephens
In reply to @mkg20001:mkg20001.io
btw, 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-unify
Neat!
02:01:50
@aanderse:nixos.devaanderse mkg20001: did you look at system manager by numtide? 02:02:09
@hexa:lossy.networkhexa
In reply to @adam:robins.wtf
I’m not opposed to keeping lxd in tree, but I wont be running it anymore so someone else would need to step up to own it  
ideally we wouldn't let it linger if nobody stepped up to maintain it
02:02:28
@adam:robins.wtfadamcstephens Agreed.   02:02:40
@adam:robins.wtfadamcstephens My current plan is deprecate prior to 24.05 branch off and remove shortly after.    02:03:25
@hexa:lossy.networkhexafeel free to create an issue and add it to 24.05 blockers02:03:49
@mkg20001:mkg20001.iomkg20001
In reply to @aanderse:nixos.dev
mkg20001: did you look at system manager by numtide?
no. had a look on it. the idea with nix-unify is to use things as if already using nixos (e.g. use the existing modules), while system manager allows just managing some state the nixos way.
02:04:42

Show newer messages


Back to Room ListRoom Version: 10