

NixOS is a Linux distribution built on top of the Nix package manager. Its declarative configuration allows reliable system upgrades via several official channels of stability and size.
This community discusses NixOS, Nix, and everything related.
We present a real-world use-case of NixOS to manage an highly distributed fleet of servers & VMs in low-resource settings used for mission critical applications. After a brief overview of who MSF is and what we do, we'll dive into the technical details of how we manage our fleet with NixOS and the unique strengths that NixOS brings to the table.
Need help: python venv for script execution
Hi everyone I'm currently in the process to move one of my RPI4s from RaspberryOS to NixOS and I'm struggling to setup one of the services.
On the RPI I have a python script that is creating offsite backups via a Wireguard tunnel:
allthough it's a bit overkill it works quite well for a few years now. Since most of the tasks are actually outsourced to systemd units those where quite easy to setup in nixOS. What I'm struggling is, how can I create a virtual python env to run the python script. All the guides I found for managing python dependencies are usually for development and use nix shell
My current workaround is, that I copy the script and requirements.txt from my script repo and create the venv manually. This does work, but I feel there is a better way, maybe the
Self Hosting Vaultwarden and Setting up SSL Certificates under Tailscale in Nixos
I have been using pass but since i am experimenting with selfhosting and wanted to store passkeys inside my password manager i wanted to selfhost Vaultwarden (a Bitwarden server implementation) server but i didn’t wanted to expose it to internet so i wanted to use my Tailscale network. so i added re...
I would kill for QubesOS features in NixOS
Meaning, VMs with Xen and hardware virtualization support
The system VM/Qube for USBs is isolated, the Network VM/Qube is separate and isolated, the windowing system and OS housing the qubes is isolated....
And being able to configure all of those with Nix would be a wet dream come true
DetSys seems to have made a security release to NixCpp. The primary risk is leaking of netrc credentials through a crafted derivation plus an attacker-in-the-middle. Users of the experimental feature impure-derivations are at greater risk. FlakeHub Cache users and users of impure derivations sh...
Inspect where a NixOS option is defined
NixOS modules are great; and it’s one of the superpowers of NixOS. They’re so great, there was a working group to look into how to apply the concept to Nixpkgs itself. For those uninitiated, there are plenty of guides online describing it’s value and purpose such as this one or on nix.dev. My larges...
I add aria2 as a download manager to a NixOS server to help bundle my Bandcamp downloads together
cross-posted from: https://discuss.tchncs.de/post/22480304
It’s often said that git is a poor VCS, but a good VCS Construction Kit. NixOS can feel similar at times — nix is very powerful, and there are amazing things you can do if you know nuts&bolts of it. However, for a casual user, the sheer amount of possibilities can feel overwhelming, and it might ...
cross-posted from: https://discuss.tchncs.de/post/22424459
I haven’t seen this documented yet, and wanted to point out that it’s possible to use BOTH the system-level Firefox and the home-manager-level Firefox settings. Why would you want to do this? Well, each has its advantages: System-level Firefox allows you to create system-wide “policies” that inc...
cross-posted from: https://discuss.tchncs.de/post/22424275
For a little bit now, I’ve been somewhat disappointed with how Minecraft (particularly servers) have been packaged with Nix and NixOS. So, since I run a couple servers of my own, I decided to spin off my module and packages into its own (flakes!) repository for the world to use: GitHub - Infinidoge/...
NixOS Facter: a declarative hardware configuration for NixOS is inviting the community to try it out.
Since we introduced NixOS Facter six weeks ago (Better hardware-detection with nixos-facter), we’ve mainly focused on refining and stabilising the report format and establishing some essential documentation. I’m happy to say that work is now done, and we’d like to invite the community to try it out...
NixOS Facter aims to be an alternative to projects such as NixOS Hardware and nixos-generate-config. It solves the problem of bootstrapping NixOS configurations by deferring decisions about hardware and other aspects of the target platform to NixOS modules.
Principal Skinner on Immutable Distros
cross-posted from: https://infosec.pub/post/15780978
Am I out of touch?
No, it's the forward-thinking generation of software engineers that want elegant, reliable, declarative systems that are wrong.
Apparently nix-unstable might be a more stable package manager than nixpkgs for gaming
Had a lot of headaches the last week or two trying to optimize star citizen as well as fix a vulkan RHI bug which was affecting unreal engine games.
Apparently rolling release schedules (like NixOS23.05, 23.11, 24.05...) are better for servers since they're less prone to change, where as nightlies like for the unstable Branch are better for gaming since those latest drivers are likely the current ones for a newly released game
Idea: NixOS configuration meant for hosting "for the common good" services, like tor relays, simplex relay, archive team warrior, etc.
This idea is inspired by nixos-mailserver. It was so easy to spin up the mailserver after changing some DNS records and putting in some settings. I thought it might be a good idea to do the same for services that need public, decentralized infrastructure to support. Some ideas include
Maybe federated services, but those require more than just the software running on the public internet. Those require moderation and long term maintenance. Ideally, the services in this config would be ephemeral.
Does this sound like a good idea? Would you spin one of these up on a $10 VPS? I understand that this is the NixOS community, not necessarily the p
Python Packaging Issue: How to link libnvrtc.so.12 and libnvrtc-b51b459d.so to torch-bin?
I’m trying to package a repo I used to use in Windows Subsystem for Linux. I’m about to resort to podman, but I’m so close to getting it to work in Nix. The original repo is here: GitHub - neonbjb/tortoise-tts: A multi-voice TTS system trained with an emphasis on quality My fork uses poetry2nix her...
Has someone deployed Kafka on their NixOS system? I could use some help doing it the "nix" way
I found some settings on NixOS Search I’ve added these to my configuration.nix: environment.systemPackages = with pkgs; [ apacheKafka ]; services.apache-kafka = { enable = true; settings = { "broker.id" = 0; "log.dirs" = [ "/tmp/kafka_logs" ]; listeners = ["PLAI...
Making a development shell for an AI/GPU Accelerated python project with nix flakes, poetry/poetry2nix, and pypi
Went through the pain of packaging a python project on Nixos. Here's some issues I hit, and how I got lucky resolving them. I feel the most reliable way of doing this in the future is to use docker and just imperatively build.
Here's how I got web drivers, AI dependencies, gpu dependencies, and an api dependency bundled together into an ephemeral shell for python development, on NixOS 23.11
nix flake init --template github:nix-community/poetry2nix
projectDir = self
to projectDir = ./.
fixed some issues nix develop .
to build the poetry app with python packages described in pyproject.toml