fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

#NixOS

78 posts68 participants17 posts today
Continued thread

Running the playbook with -v shows me that it is using a completely different python3 from /nix/store/lhpwdis5hkyljz1d200bj1s6g51ljq9k-python3-3.12.8/bin/python3 which does not have the kubernetes module apparently.

No idea how it picks this up, where it takes that information from and how to fix this...

Continued thread

Fourth and hopefully last round for the #NixOS #Ansible bubble:

Short recap: Having the kubernetes module in the ansible derivation/package is not enough, it needs to also be in the python3 or python312 derivation/package.

Fun fact:
- `which python3` gives me /home/tux.penguin/.nix-profile/bin/python3
- this links to /nix/store/ipwx571dlhxmdf1n1yd8vgqq5ndjnxba-python3-3.12.8-env/bin/python3
- `which -a python3` only gives me this one python, no other binaries found in the PATH with that name

1. Using /nix/store/ipwx571dlhxmdf1n1yd8vgqq5ndjnxba-python3-3.12.8-env/bin/python3 as ansible_python_interpreter works, the kubernetes module is found
2. Using /home/tux.penguin/.nix-profile/bin/python3 for ansible_python_interpreter works
3. Using "{{ lookup('env','HOME') }}/.nix-profile/bin/python3" for ansible_python_interpreter works
4. Using just python3 DOES NOT work?!?!? What the hell? Even if this is resolved (in the shell at least) to the same python3 binary/link in ~/.nix-profile/bin/python3? What the hell?

Replied in thread

@codechimp I love and I would NEVER run in it.
There's a path of least resistance with home assistant, and I will take that road. Hassos is a tiny bit too opinionated (the supervisor is nice but it can be opaque) but smart people maintain it for one and one purpose only, which is to ruh home assistant. And by golly, I will abide! 😎

Replied to Ivan Demchuk

@demivan Hum interesting thks I honestly just know Talos by name but I would have expected that because #NixOS declarative nature the configuration will be simple, not sure about the moving you talking about.
With #NixOs i can use the GitOps approach tho i think, or at least this is what i am trying to do in the end.

I guess we do #kubernetes now?

I'm just experimenting tho, my current infra on debian with virtual machine and docker compose works fine.

But I do am curious about #kubernetes. Also was searching for an excuse for #nixos that i don't want to use as a desktop, i like the Universal Blue based Fedora, Bazzite and aurora for that.

So anyway if some creatures have any resources on either #kubernetes and #nixos please share because i have no idea what i am doing. (Just kidding but this is an experimentation so i'm learning)

Thank y'all for the first day of #Rejekts2025 with great talks and inspiring conversations!

I am excited that I got a spot for the #LightningTalk​s.
Looking forward to present you #Kubenix a tool leveraging #NixOS modules to declare #K8s workloads fully declarative.
I will also show how its #Helm integration essentially bridges the #CloudNative and #Nix ecosystem effectively, while offering additionally type safety.

See you at 18:15 in the hall #TheNash!

dear internet, i have a nixos with an efi-only partition and i want to do luks unlock via ssh from inside initrd. when setting network settings into `boot.initrd.network` and ssh config (with host keys in /boot/efi) into `boot.initrd.network.ssh`, i do not get any action in stage 1 attempting to either bring up the network nor launch SSH. i get the normal systemd-udev prompt for the luks passphrase. any ideas?
#nixos #nix