hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

9.6K
active users

#nixos

60 posts52 participants13 posts today
Johannes Kastl<p>OK, this seems to be the python that Ansible is using. Being called directly without all the PATH mangling that the .ansible-wrapped script does. Which explains why it does not find the kubernetes module...</p><p>(Thanks @darix for the hint)</p><p><a href="https://digitalcourage.social/tags/NixOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>NixOS</span></a> <a href="https://digitalcourage.social/tags/Ansible" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Ansible</span></a> <a href="https://digitalcourage.social/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> <a href="https://digitalcourage.social/tags/wtf" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>wtf</span></a></p>
Johannes Kastl<p>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.</p><p>No idea how it picks this up, where it takes that information from and how to fix this...</p><p><a href="https://digitalcourage.social/tags/NixOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>NixOS</span></a> <a href="https://digitalcourage.social/tags/Ansible" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Ansible</span></a> <a href="https://digitalcourage.social/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a></p>
Johannes Kastl<p>Hardcoding a nix path, even it is just ~/.nix-profile/bin/python3, is of course not feasible if the code is being used on other machines where this is not guaranteed to exist (as outlined in the answers yesterday).</p><p>What am I missing?</p><p><a href="https://digitalcourage.social/tags/NixOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>NixOS</span></a> <a href="https://digitalcourage.social/tags/Ansible" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Ansible</span></a> <a href="https://digitalcourage.social/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> <a href="https://digitalcourage.social/tags/wtf" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>wtf</span></a></p>
Johannes Kastl<p>Fourth and hopefully last round for the <a href="https://digitalcourage.social/tags/NixOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>NixOS</span></a> <a href="https://digitalcourage.social/tags/Ansible" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Ansible</span></a> bubble:</p><p>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.</p><p>Fun fact:<br>- `which python3` gives me /home/tux.penguin/.nix-profile/bin/python3<br>- this links to /nix/store/ipwx571dlhxmdf1n1yd8vgqq5ndjnxba-python3-3.12.8-env/bin/python3<br>- `which -a python3` only gives me this one python, no other binaries found in the PATH with that name</p><p>1. Using /nix/store/ipwx571dlhxmdf1n1yd8vgqq5ndjnxba-python3-3.12.8-env/bin/python3 as ansible_python_interpreter works, the kubernetes module is found<br>2. Using /home/tux.penguin/.nix-profile/bin/python3 for ansible_python_interpreter works<br>3. Using "{{ lookup('env','HOME') }}/.nix-profile/bin/python3" for ansible_python_interpreter works<br>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?</p>
Cathal<p>For anyone out there using <span class="h-card" translate="no"><a href="https://mastodon.social/@protonprivacy" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>protonprivacy</span></a></span> Mail/Pass on <a href="https://fosstodon.org/tags/NixOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>NixOS</span></a>, I've packaged the desktop clients from source here, since they only distribute x86_64 versions officially. <a href="https://github.com/DuskSystems/nix-proton" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/DuskSystems/nix-pro</span><span class="invisible">ton</span></a></p>
SignalEleven<p><span class="h-card" translate="no"><a href="https://mastodon.online/@codechimp" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>codechimp</span></a></span> I love <a href="https://fosstodon.org/tags/nixos" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nixos</span></a> and I would NEVER run <a href="https://fosstodon.org/tags/homeassistant" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>homeassistant</span></a> in it.<br>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! 😎</p>
ZeStig :emacs: :nix: :rust: :gnu: :archlinux:<p><span class="h-card" translate="no"><a href="https://mk.absturztau.be/@Linux" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>Linux</span></a></span><span> what about </span><a href="https://fedia.social/tags/NixOS" rel="nofollow noopener noreferrer" target="_blank">#NixOS</a><span>? Based in the Nederlands?</span></p>
Janneke<p><span class="h-card" translate="no"><a href="https://sw-development-is.social/@TheTraveller" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>TheTraveller</span></a></span> or switch to a modern OS such as <a href="https://todon.nl/tags/NixOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>NixOS</span></a> or <a href="https://todon.nl/tags/Guix" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Guix</span></a>, write only free software and you only ever might have to back-up some data.</p>
musicmatze :rust: :nixos:<p><span class="h-card" translate="no"><a href="https://mast.linuxat.de/@freespiritlinux" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>freespiritlinux</span></a></span> alles <a href="https://social.linux.pizza/tags/nixos" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nixos</span></a> </p><p>3 Notebooks, 1 Desktop, Raspberry-Pi(s), Homeserver, VPS</p>
brodokk<p><span class="h-card" translate="no"><a href="https://fosstodon.org/@demivan" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>demivan</span></a></span> Hum interesting thks I honestly just know Talos by name but I would have expected that because <a href="https://furry.engineer/tags/NixOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>NixOS</span></a> declarative nature the configuration will be simple, not sure about the moving you talking about.<br>With <a href="https://furry.engineer/tags/NixOs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>NixOs</span></a> i can use the GitOps approach tho i think, or at least this is what i am trying to do in the end.</p>
Ivan Demchuk<p><span class="h-card" translate="no"><a href="https://furry.engineer/@brodokk" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>brodokk</span></a></span> I have tried <a href="https://fosstodon.org/tags/kubernetes" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>kubernetes</span></a> on <a href="https://fosstodon.org/tags/NixOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>NixOS</span></a>. It is an overkill, IMHO.<br>I recommend trying out <a href="https://fosstodon.org/tags/TalosLinux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TalosLinux</span></a>: <a href="https://www.talos.dev/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="">talos.dev/</span><span class="invisible"></span></a><br>It is simpler, has less moving parts, and is easier to manage.<br>For Kubernetes, I recommend setting it up using GitOps approach.</p>
brodokk<p>I guess we do <a href="https://furry.engineer/tags/kubernetes" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>kubernetes</span></a> now?</p><p>I'm just experimenting tho, my current infra on debian with virtual machine and docker compose works fine.</p><p>But I do am curious about <a href="https://furry.engineer/tags/kubernetes" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>kubernetes</span></a>. Also was searching for an excuse for <a href="https://furry.engineer/tags/nixos" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nixos</span></a> that i don't want to use as a desktop, i like the Universal Blue based Fedora, Bazzite and aurora for that.</p><p>So anyway if some creatures have any resources on either <a href="https://furry.engineer/tags/kubernetes" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>kubernetes</span></a> and <a href="https://furry.engineer/tags/nixos" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nixos</span></a> please share because i have no idea what i am doing. (Just kidding but this is an experimentation so i'm learning)</p>
gobbe<p><a href="https://mastodon.social/tags/kate" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>kate</span></a> <a href="https://mastodon.social/tags/rustlang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rustlang</span></a> <a href="https://mastodon.social/tags/nixos" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nixos</span></a><br>UPDATE : I found a way out THANK YOU SO MUCH <span class="h-card" translate="no"><a href="https://mastodon.social/@endospore" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>endospore</span></a></span> !!!<br>Adding rust-analyzer FULLY FIXED IT :P </p><p>I had tried `rustup component add rls rust-analysis rust-src` before but I thought the "error: Unknown binary 'rust-analyzer' in official toolchain 'stable-x86_64-unknown-linux-gnu" was that I already had added rust-analyzer but because (I'm on nixos) it didn't have the right path. I did have the rust-analyzer nix package, but the kate lsp client couldn't seem to find it.</p>
Project Insanity<p>Packaged the <span class="h-card" translate="no"><a href="https://chaos.social/@fragdenstaat" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>fragdenstaat</span></a></span> project fragdenstaat.de/koalitionstracker for <a href="https://social.project-insanity.org/tags/NixOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>NixOS</span></a>, available as services.froide-govplan 🥳</p>
Arik Grahl<p>Thank y'all for the first day of <a href="https://chaos.social/tags/Rejekts2025" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Rejekts2025</span></a> with great talks and inspiring conversations!</p><p>I am excited that I got a spot for the <a href="https://chaos.social/tags/LightningTalk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>LightningTalk</span></a>​s.<br>Looking forward to present you <a href="https://chaos.social/tags/Kubenix" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Kubenix</span></a> a tool leveraging <a href="https://chaos.social/tags/NixOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>NixOS</span></a> modules to declare <a href="https://chaos.social/tags/K8s" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>K8s</span></a> workloads fully declarative.<br>I will also show how its <a href="https://chaos.social/tags/Helm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Helm</span></a> integration essentially bridges the <a href="https://chaos.social/tags/CloudNative" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CloudNative</span></a> and <a href="https://chaos.social/tags/Nix" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Nix</span></a> ecosystem effectively, while offering additionally type safety.</p><p>See you at 18:15 in the hall <a href="https://chaos.social/tags/TheNash" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TheNash</span></a>!</p>
TheDragon 🔥<p><a href="https://discourse.nixos.org/t/yubilock-module-for-waybar/62385" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://</span><span class="ellipsis">discourse.nixos.org/t/yubilock</span><span class="invisible">-module-for-waybar/62385</span></a></p><p>Oooh... graphical waybar Yubikey locking module that can be toggled on &amp; off.... yes please! 😋</p><p><a href="https://hachyderm.io/tags/NixOS" class="mention hashtag" rel="tag">#<span>NixOS</span></a> <a href="https://hachyderm.io/tags/Waybar" class="mention hashtag" rel="tag">#<span>Waybar</span></a> <a href="https://hachyderm.io/tags/Yubikey" class="mention hashtag" rel="tag">#<span>Yubikey</span></a></p>
transcaffeine ✨️<p>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?<br><a href="https://mond-basis.eu/tags/nixos" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nixos</span></a> <a href="https://mond-basis.eu/tags/nix" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nix</span></a></p>
Atemu<p><a href="https://darmstadt.social/tags/NixOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>NixOS</span></a> Meetup im <span class="h-card" translate="no"><a href="https://chaos.social/@cccda" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>cccda</span></a></span> am 2025-04-07T19:00:00.</p><p><a href="https://discourse.nixos.org/t/nixos-meetup-darmstadt-2025-04-07/62264" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">discourse.nixos.org/t/nixos-me</span><span class="invisible">etup-darmstadt-2025-04-07/62264</span></a></p><p><a href="https://darmstadt.social/tags/cccda" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cccda</span></a> <a href="https://darmstadt.social/tags/w17" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>w17</span></a></p>
lewo<p>Short blog post on how to authenticate your NixOS deployments with comin: <a href="https://lewo.abesis.fr/posts/authenticate-nixos-deployments/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">lewo.abesis.fr/posts/authentic</span><span class="invisible">ate-nixos-deployments/</span></a></p><p><a href="https://mamot.fr/tags/nixos" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nixos</span></a> <a href="https://mamot.fr/tags/nix" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nix</span></a></p>
Johannes Kastl<p>Third round for the <a href="https://digitalcourage.social/tags/NixOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>NixOS</span></a> <a href="https://digitalcourage.social/tags/Ansible" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Ansible</span></a> bubble:</p><p>I think I have a solution! At least I got some thing working.</p><p>Having the python312 nixpkg installed is not enough. It is also not enough to have python312, python312Packages.kubernetes and python312Packages.cryptography installed.</p><p>I had to install them "in the same package":</p><p>```<br> home.packages = with pkgs; [<br> ansible<br> ansible-lint<br> (pkgs.python3.withPackages (python-pkgs: [<br> python-pkgs.cryptography<br> python-pkgs.kubernetes<br> ]))<br> ];<br>```</p><p>Then I could set the ansible_python_interpreter to `python3` and could use the kubernetes python module for using things from the kubernetes.core Ansible collection.</p><p>This is in addition to having the modules also available in the ansible derivation, no idea if that is really necessary.</p><p>I'll do some more digging and testing, but at least something worked now! I call that a win!</p><p># NixOS <a href="https://digitalcourage.social/tags/Ansible" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Ansible</span></a> <a href="https://digitalcourage.social/tags/Python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Python</span></a> <a href="https://digitalcourage.social/tags/hellyeah" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>hellyeah</span></a></p>