# Guides

**URL:** https://discourse.nixosstag.fcio.net/c/howto/15.md?page=1

[Latest](https://discourse.nixosstag.fcio.net/latest.md) · [Categories](https://discourse.nixosstag.fcio.net/categories.md)

**Page:** 2

---

## [Security - root password entered with every command](https://discourse.nixosstag.fcio.net/t/security-root-password-entered-with-every-command/64362)

<div class="topic-metadata">

**Author:** [@milomak](https://discourse.nixosstag.fcio.net/u/milomak)\
**Replies:** 2\
**Last updated:** [May 17, 2025, 5:27am UTC](https://discourse.nixosstag.fcio.net/t/security-root-password-entered-with-every-command/64362 "2025-05-17T05:27:10Z")

</div>

i found that i wanted to know how i could have sudo ask for the root password everytime i eventually found it { config, pkgs, ... }: { security.sudo = { enable = true; wheelNeedsPassword = true; # Require p…

---

## [Docker-compose.nix](https://discourse.nixosstag.fcio.net/t/docker-compose-nix/64303)

<div class="topic-metadata">

**Author:** [@aou](https://discourse.nixosstag.fcio.net/u/aou)\
**Replies:** 2\
**Last updated:** [May 15, 2025, 4:55pm UTC](https://discourse.nixosstag.fcio.net/t/docker-compose-nix/64303 "2025-05-15T16:55:11Z")

</div>

docker-compose.nix enables nix-defined or imported docker-compose.yml services with secrets (e.g., sops-nix) integration and optional systemd service. I know, I know, I should package the app and write a proper nixos …

---

## [Rootless podman setup with Home Manager](https://discourse.nixosstag.fcio.net/t/rootless-podman-setup-with-home-manager/57905)

<div class="topic-metadata">

**Author:** [@Jarppiko](https://discourse.nixosstag.fcio.net/u/Jarppiko)\
**Replies:** 7\
**Last updated:** [May 14, 2025, 7:54pm UTC](https://discourse.nixosstag.fcio.net/t/rootless-podman-setup-with-home-manager/57905 "2025-05-14T19:54:34Z")

</div>

Hello, After countless of hours tinkering I managed to get rootless Podman pods working. I am sharing my config in case it helps someone. In this example I have setup Unifi Network Application based on LinuxServer.io’s…

---

## [Vaultwarden (unofficial Bitwarden server)](https://discourse.nixosstag.fcio.net/t/vaultwarden-unofficial-bitwarden-server/64155)

<div class="topic-metadata">

**Author:** [@sshine](https://discourse.nixosstag.fcio.net/u/sshine)\
**Replies:** 2\
**Last updated:** [May 12, 2025, 4:57pm UTC](https://discourse.nixosstag.fcio.net/t/vaultwarden-unofficial-bitwarden-server/64155 "2025-05-12T16:57:04Z")

</div>

Hello, For the sake of providing a timely report of installing Vaultwarden, rather than a perfected blog post or a good wiki entry, here is currently what I’ve got, and some follow-up comments on how to make it work bet…

---

## [Tips&Tricks for NixOS Desktop](https://discourse.nixosstag.fcio.net/t/tips-tricks-for-nixos-desktop/28488)

<div class="topic-metadata">

**Author:** [@matklad](https://discourse.nixosstag.fcio.net/u/matklad)\
**Replies:** 15\
**Last updated:** [May 6, 2025, 6:22am UTC](https://discourse.nixosstag.fcio.net/t/tips-tricks-for-nixos-desktop/28488 "2025-05-06T06:22:42Z")

</div>

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 casu…

---

## [WireGuard \`autostart\` with DNS resolution](https://discourse.nixosstag.fcio.net/t/wireguard-autostart-with-dns-resolution/63831)

<div class="topic-metadata">

**Author:** [@susd](https://discourse.nixosstag.fcio.net/u/susd)\
**Replies:** 8\
**Last updated:** [May 5, 2025, 12:31pm UTC](https://discourse.nixosstag.fcio.net/t/wireguard-autostart-with-dns-resolution/63831 "2025-05-05T12:31:44Z")

</div>

Hello, I’ll show how to set up a WireGuard interface that connects to a peer via his hostname and gets automatically started at boot by systemd. networking.firewall = { allowedUDPPorts = \[ {exposedPort} \]; }; …

---

## [Nixos on raspberry CM3 handheld](https://discourse.nixosstag.fcio.net/t/nixos-on-raspberry-cm3-handheld/63800)

<div class="topic-metadata">

**Author:** [@jecaro](https://discourse.nixosstag.fcio.net/u/jecaro)\
**Replies:** 0\
**Last updated:** [May 3, 2025, 1:42pm UTC](https://discourse.nixosstag.fcio.net/t/nixos-on-raspberry-cm3-handheld/63800 "2025-05-03T13:42:47Z")

</div>

A few years ago, many people were building their gaming handhelds using SBCs such as raspberry pi. Now, it is less the case as there are a lot of cheap and, I’m told, pretty good handhelds in this market. Anyway, I have…

---

## [A cool function to import nix modules automatically](https://discourse.nixosstag.fcio.net/t/a-cool-function-to-import-nix-modules-automatically/62757)

<div class="topic-metadata">

**Author:** [@Pierre-Thibault](https://discourse.nixosstag.fcio.net/u/Pierre-Thibault)\
**Replies:** 16\
**Last updated:** [May 3, 2025, 2:48pm UTC](https://discourse.nixosstag.fcio.net/t/a-cool-function-to-import-nix-modules-automatically/62757 "2025-05-03T14:48:13Z")

</div>

I want to share a cool function. get\_import\_dir will search hierarchically your directory for .nix modules. This way, you can freely manage your nix configuration in different module files and folders without even having…

---

## [Common Issue: accessing binaries](https://discourse.nixosstag.fcio.net/t/common-issue-accessing-binaries/63312)

<div class="topic-metadata">

**Author:** [@BoredSquirrel](https://discourse.nixosstag.fcio.net/u/BoredSquirrel)\
**Replies:** 5\
**Last updated:** [April 22, 2025, 7:20pm UTC](https://discourse.nixosstag.fcio.net/t/common-issue-accessing-binaries/63312 "2025-04-22T19:20:43Z")

</div>

Coming from other systems, you may be used to locating binaries like /bin/bash. On NixOS, the currently used binaries are in various places of the nix store ~ ❯❯❯ whereis bash bash: /nix/store/ggl4fqsvvlyf1y3rl6mk72nf0…

---

## [How to Join an Active Directory with NixOS](https://discourse.nixosstag.fcio.net/t/how-to-join-an-active-directory-with-nixos/63339)

<div class="topic-metadata">

**Author:** [@liberodark](https://discourse.nixosstag.fcio.net/u/liberodark)\
**Replies:** 0\
**Last updated:** [April 22, 2025, 1:35pm UTC](https://discourse.nixosstag.fcio.net/t/how-to-join-an-active-directory-with-nixos/63339 "2025-04-22T13:35:43Z")

</div>

Hello, Here’s how to create a connection to an Active Directory with NixOS. The first part involves activating krb5: nixos-rebuild switch Here is the complete configuration: { config, pkgs, ... }: { networking.host…

---

## [Minimal Hyprland + Waybar setup](https://discourse.nixosstag.fcio.net/t/minimal-hyprland-waybar-setup/63304)

<div class="topic-metadata">

**Author:** [@JimJ92120](https://discourse.nixosstag.fcio.net/u/JimJ92120)\
**Replies:** 0\
**Last updated:** [April 21, 2025, 5:15am UTC](https://discourse.nixosstag.fcio.net/t/minimal-hyprland-waybar-setup/63304 "2025-04-21T05:15:37Z")

</div>

Hi everyone, I’ve gathered a minimal configuration for hyprland and waybar (mainly their own default configurations) for folks who’d like to try these out and mess around with configuring hyrpland, wayland, theming, etc…

---

## [Heads-up for Intel N100 users](https://discourse.nixosstag.fcio.net/t/heads-up-for-intel-n100-users/61733)

<div class="topic-metadata">

**Author:** [@thefossguy](https://discourse.nixosstag.fcio.net/u/thefossguy)\
**Replies:** 1\
**Last updated:** [April 20, 2025, 1:10pm UTC](https://discourse.nixosstag.fcio.net/t/heads-up-for-intel-n100-users/61733 "2025-04-20T13:10:18Z")

</div>

Recently EDAC polling support was merged upstream and it causes a flood of EDAC error messages for Intel N100 users on kernel 6.13 and above. Following is a snippet: Feb 21 06:15:12 matsya kernel: EDAC igen6 MC0: HANDLI…

---

## [Autocomplete in the Terminal with Zsh](https://discourse.nixosstag.fcio.net/t/autocomplete-in-the-terminal-with-zsh/55005)

<div class="topic-metadata">

**Author:** [@tesy](https://discourse.nixosstag.fcio.net/u/tesy)\
**Replies:** 1\
**Last updated:** [April 20, 2025, 10:15am UTC](https://discourse.nixosstag.fcio.net/t/autocomplete-in-the-terminal-with-zsh/55005 "2025-04-20T10:15:20Z")

</div>

Hey! I spent some time working on terminal autocompletion and wanted to share what I found. I ended up using Zsh, and I’ve put together a minimal reproducible script for Home Manager to set it up. You can check out th…

---

## [Yazi and ImageMagick for converting photos](https://discourse.nixosstag.fcio.net/t/yazi-and-imagemagick-for-converting-photos/63158)

<div class="topic-metadata">

**Author:** [@tesy](https://discourse.nixosstag.fcio.net/u/tesy)\
**Replies:** 0\
**Last updated:** [April 17, 2025, 7:41am UTC](https://discourse.nixosstag.fcio.net/t/yazi-and-imagemagick-for-converting-photos/63158 "2025-04-17T07:41:45Z")

</div>

yazi configuration on nixos that creates keyboard shortcuts for converting photos: programs.yazi = { keymap.manager.prepend\_keymap = \[ { run = '' shell '~/scripts/photo-processor.sh 80 "3000x3000\>" …

---

## [Howto: Disable most gnome default applications (and what they are)](https://discourse.nixosstag.fcio.net/t/howto-disable-most-gnome-default-applications-and-what-they-are/13505)

<div class="topic-metadata">

**Author:** [@busti](https://discourse.nixosstag.fcio.net/u/busti)\
**Replies:** 16\
**Last updated:** [April 16, 2025, 9:49pm UTC](https://discourse.nixosstag.fcio.net/t/howto-disable-most-gnome-default-applications-and-what-they-are/13505 "2025-04-16T21:49:16Z")

</div>

Installing gnome also installs a lot of default applications, sometimes you may want to use different applications instead in which case the gnome native applications can get a little annoying. Luckily there is a config…

---

## [An unofficial book for beginner (japanese) nixos kdeplasma6 & nixos-wsl](https://discourse.nixosstag.fcio.net/t/an-unofficial-book-for-beginner-japanese-nixos-kdeplasma6-nixos-wsl/63056)

<div class="topic-metadata">

**Author:** [@tositada17](https://discourse.nixosstag.fcio.net/u/tositada17)\
**Replies:** 0\
**Last updated:** [April 15, 2025, 2:07am UTC](https://discourse.nixosstag.fcio.net/t/an-unofficial-book-for-beginner-japanese-nixos-kdeplasma6-nixos-wsl/63056 "2025-04-15T02:07:32Z")

</div>

I published 2 books on the japanese platform . (its not english) how to uses nixos-wsl how to dualboot nixos, and set up kdeplasma6 hello nixos comunity enjoy nixos

---

## [Building a blog with Hugo and Nix](https://discourse.nixosstag.fcio.net/t/building-a-blog-with-hugo-and-nix/38201)

<div class="topic-metadata">

**Author:** [@jnsgruk](https://discourse.nixosstag.fcio.net/u/jnsgruk)\
**Replies:** 1\
**Last updated:** [April 13, 2025, 4:37pm UTC](https://discourse.nixosstag.fcio.net/t/building-a-blog-with-hugo-and-nix/38201 "2025-04-13T16:37:09Z")

</div>

Hi all I recently started a blog built with Go, Hugo and Nix. I wrote about it here (source code linked below): Dropping here in case there is anything useful for folks. Code is at: GitHub - jnsgruk/jnsgr.uk: My per…

---

## [Minimal KDE Plasma Wayland-only install](https://discourse.nixosstag.fcio.net/t/minimal-kde-plasma-wayland-only-install/62449)

<div class="topic-metadata">

**Author:** [@BoredSquirrel](https://discourse.nixosstag.fcio.net/u/BoredSquirrel)\
**Replies:** 3\
**Last updated:** [April 13, 2025, 1:05pm UTC](https://discourse.nixosstag.fcio.net/t/minimal-kde-plasma-wayland-only-install/62449 "2025-04-13T13:05:53Z")

</div>

The installation manuals were a bit misleading, but it is possible to install KDE Plasma Wayland-only! I used the minimal install ISO, documented the install process here. The snippet from my configuration.nix is in th…

---

## [Getting Eduroam to work at University of Amsterdam](https://discourse.nixosstag.fcio.net/t/getting-eduroam-to-work-at-university-of-amsterdam/62767)

<div class="topic-metadata">

**Author:** [@misha](https://discourse.nixosstag.fcio.net/u/misha)\
**Replies:** 3\
**Last updated:** [April 13, 2025, 12:13pm UTC](https://discourse.nixosstag.fcio.net/t/getting-eduroam-to-work-at-university-of-amsterdam/62767 "2025-04-13T12:13:01Z")

</div>

It took me a while to get Eduroam working at the University of Amsterdam (UvA). This approach did not work for me. (The UvA doesn’t follow this installer set-up). But this works for me (works with agenix): networki…

---

## [Build Dockerfile/Containerfile with Nix](https://discourse.nixosstag.fcio.net/t/build-dockerfile-containerfile-with-nix/62592)

<div class="topic-metadata">

**Author:** [@imincik](https://discourse.nixosstag.fcio.net/u/imincik)\
**Replies:** 1\
**Last updated:** [April 10, 2025, 7:14pm UTC](https://discourse.nixosstag.fcio.net/t/build-dockerfile-containerfile-with-nix/62592 "2025-04-10T19:14:55Z")

</div>

In case you have to deal with containers which can’t be easily rewritten to Nix, I wrote an interesting Nix function which is capable of building a Dockerfile without any modification. Check out containerfile-nix.

---

## [Forcing impure derivation to be "pure"](https://discourse.nixosstag.fcio.net/t/forcing-impure-derivation-to-be-pure/62614)

<div class="topic-metadata">

**Author:** [@StepBroBD](https://discourse.nixosstag.fcio.net/u/StepBroBD)\
**Replies:** 2\
**Last updated:** [April 7, 2025, 10:50am UTC](https://discourse.nixosstag.fcio.net/t/forcing-impure-derivation-to-be-pure/62614 "2025-04-07T10:50:39Z")

</div>

Clickbaity title :rofl: So I needed to use a Deno package on my NixOS server, but it would only build with sandbox turned off. But… I really wanted to keep my machine “pure” (avoid --impure flag when building/deploying)…

---

## [Fixing fonts in Nix Container images](https://discourse.nixosstag.fcio.net/t/fixing-fonts-in-nix-container-images/62586)

<div class="topic-metadata">

**Author:** [@alicebob](https://discourse.nixosstag.fcio.net/u/alicebob)\
**Replies:** 0\
**Last updated:** [April 3, 2025, 7:51am UTC](https://discourse.nixosstag.fcio.net/t/fixing-fonts-in-nix-container-images/62586 "2025-04-03T07:51:48Z")

</div>

Hi, I had some trouble getting fonts to work for weasyprint in a Docker image I made with Nix via dockerTools.buildImage. This apparently not a very common use case, so here’s my workaround which fixed it for me. Maybe …

---

## [Mozilla Thunderbird (birdtray) on Wayland](https://discourse.nixosstag.fcio.net/t/mozilla-thunderbird-birdtray-on-wayland/59811)

<div class="topic-metadata">

**Author:** [@simplejack-src](https://discourse.nixosstag.fcio.net/u/simplejack-src)\
**Replies:** 0\
**Last updated:** [February 4, 2025, 4:49pm UTC](https://discourse.nixosstag.fcio.net/t/mozilla-thunderbird-birdtray-on-wayland/59811 "2025-02-04T16:49:41Z")

</div>

I’m stretching the word “guide” here, but thought I’d toss up these snippets from my configuration. Problem: Mozilla Thunderbird lacks a system-tray status notification and I’d like to know when new-mail has arrived. I…

---

## [How to enable internet access inside a NixOS container](https://discourse.nixosstag.fcio.net/t/how-to-enable-internet-access-inside-a-nixos-container/62458)

<div class="topic-metadata">

**Author:** [@ursi](https://discourse.nixosstag.fcio.net/u/ursi)\
**Replies:** 0\
**Last updated:** [March 31, 2025, 11:28pm UTC](https://discourse.nixosstag.fcio.net/t/how-to-enable-internet-access-inside-a-nixos-container/62458 "2025-03-31T23:28:59Z")

</div>

I was unable to find a straightforward guide on how to get internet access inside a NixOS container. So upon figuring it out, I am sharing. Container networking.useHostResolvConf = false; services.resolved.enable = true…

---

## [Blackmagic RX 580/580X eGPU inside QEMU](https://discourse.nixosstag.fcio.net/t/blackmagic-rx-580-580x-egpu-inside-qemu/62364)

<div class="topic-metadata">

**Author:** [@alexa-v](https://discourse.nixosstag.fcio.net/u/alexa-v)\
**Replies:** 0\
**Last updated:** [March 30, 2025, 12:49pm UTC](https://discourse.nixosstag.fcio.net/t/blackmagic-rx-580-580x-egpu-inside-qemu/62364 "2025-03-30T12:49:16Z")

</div>

I’ve been trying to run a Ubuntu virtual machine inside QEMU that has a Blackmagic RX 580(X?) eGPU passed through to it as a PCIe device. It’s taken a decent few weeks to get working, so I figured I’d post a guide here. …

---

## [Nixos using integrated GPU for display and external GPU for compute: a guide](https://discourse.nixosstag.fcio.net/t/nixos-using-integrated-gpu-for-display-and-external-gpu-for-compute-a-guide/12345)

<div class="topic-metadata">

**Author:** [@danielbarter](https://discourse.nixosstag.fcio.net/u/danielbarter)\
**Replies:** 5\
**Last updated:** [June 29, 2024, 5:27am UTC](https://discourse.nixosstag.fcio.net/t/nixos-using-integrated-gpu-for-display-and-external-gpu-for-compute-a-guide/12345 "2024-06-29T05:27:54Z")

</div>

Hi there, Recently i got my hands on a nvidia GPU. I wanted to use my integrated AMD GPU for display and the nvidia GPU for computing only. This seems like a fairly reasonable setup, but the wiki doesn’t have any inform…

---

## [PSA for those with hibernation issues on Nvidia](https://discourse.nixosstag.fcio.net/t/psa-for-those-with-hibernation-issues-on-nvidia/61834)

<div class="topic-metadata">

**Author:** [@physics-enthusiast](https://discourse.nixosstag.fcio.net/u/physics-enthusiast)\
**Replies:** 0\
**Last updated:** [March 18, 2025, 12:16pm UTC](https://discourse.nixosstag.fcio.net/t/psa-for-those-with-hibernation-issues-on-nvidia/61834 "2025-03-18T12:16:05Z")

</div>

If you resume from sleep/suspend/hibernate to a blank screen with a movable cursor and use an Nvidia GPU, try adding boot.extraModprobeConfig = '' options nvidia\_modeset vblank\_sem\_control=0 ''; to your configuration…

---

## [K3s clusters and deployments in pure Nix](https://discourse.nixosstag.fcio.net/t/k3s-clusters-and-deployments-in-pure-nix/61794)

<div class="topic-metadata">

**Author:** [@rorosen](https://discourse.nixosstag.fcio.net/u/rorosen)\
**Replies:** 0\
**Last updated:** [March 17, 2025, 4:14pm UTC](https://discourse.nixosstag.fcio.net/t/k3s-clusters-and-deployments-in-pure-nix/61794 "2025-03-17T16:14:12Z")

</div>

Hi all! The NixOS module for k3s has some nice options that allow to configure Kubernetes deployments directly in pure Nix! I would like to share some examples on how to use them and hope they help one or the other to b…

---

## [Fix create-image.sh failure due to debootstrap missing zstd](https://discourse.nixosstag.fcio.net/t/fix-create-image-sh-failure-due-to-debootstrap-missing-zstd/61500)

<div class="topic-metadata">

**Author:** [@fidgetingbits](https://discourse.nixosstag.fcio.net/u/fidgetingbits)\
**Replies:** 0\
**Last updated:** [March 11, 2025, 9:44am UTC](https://discourse.nixosstag.fcio.net/t/fix-create-image-sh-failure-due-to-debootstrap-missing-zstd/61500 "2025-03-11T09:44:04Z")

</div>

I ran into a very non-descriptive error running the syzkaller create-image.sh script via easylkb, which relies on debootstrap under the hood: I: Extracting passwd... I: Extracting perl-base... I: Extracting sed... I: Ex…

---

## [How to use platformio with vscode](https://discourse.nixosstag.fcio.net/t/how-to-use-platformio-with-vscode/15805)

<div class="topic-metadata">

**Author:** [@loucass003](https://discourse.nixosstag.fcio.net/u/loucass003)\
**Replies:** 9\
**Last updated:** [March 8, 2025, 4:07pm UTC](https://discourse.nixosstag.fcio.net/t/how-to-use-platformio-with-vscode/15805 "2025-03-08T16:07:16Z")

</div>

Here is how to run platformio and build an esp32 firmware create a nix shell shell.nix { pkgs ? import \<nixpkgs\> {} }: let in pkgs.mkShell { buildInputs = \[ pkgs.platformio pkgs.avrdude \]; } o…

[Previous page](https://discourse.nixosstag.fcio.net/c/howto/15.md)

[Next page](https://discourse.nixosstag.fcio.net/c/howto/15.md?page=2)
