# Guides

**URL:** https://discourse.nixosstag.fcio.net/c/howto/15.md

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

---

## [About the Guides category](https://discourse.nixosstag.fcio.net/t/about-the-guides-category/190)

<div class="topic-metadata">

**Author:** [@zimbatm](https://discourse.nixosstag.fcio.net/u/zimbatm)\
**Replies:** 5\
**Last updated:** [May 3, 2023, 11:28pm UTC](https://discourse.nixosstag.fcio.net/t/about-the-guides-category/190 "2023-05-03T23:28:19Z")

</div>

Post best practices, guides, and tutorials here.

---

## [How to configure a graphical boot screen with LUKS unlock](https://discourse.nixosstag.fcio.net/t/how-to-configure-a-graphical-boot-screen-with-luks-unlock/63357)

<div class="topic-metadata">

**Author:** [@BoredSquirrel](https://discourse.nixosstag.fcio.net/u/BoredSquirrel)\
**Replies:** 5\
**Last updated:** [August 8, 2025, 3:38pm UTC](https://discourse.nixosstag.fcio.net/t/how-to-configure-a-graphical-boot-screen-with-luks-unlock/63357 "2025-08-08T15:38:32Z")

</div>

Linux systems show a lot of useful info when booting. On NixOS this is the default. The LUKS password entry finishes “Stage 1”, in “Stage 2” the unlocked system is booted. All of this is shown in text only, which works …

---

## [Pattern: every file is a flake-parts module](https://discourse.nixosstag.fcio.net/t/pattern-every-file-is-a-flake-parts-module/61271)

<div class="topic-metadata">

**Author:** [@mightyiam](https://discourse.nixosstag.fcio.net/u/mightyiam)\
**Replies:** 37\
**Last updated:** [August 8, 2025, 5:31am UTC](https://discourse.nixosstag.fcio.net/t/pattern-every-file-is-a-flake-parts-module/61271 "2025-08-08T05:31:32Z")

</div>

After nine moths of using flake-parts in several projects I’ve refactored my personal infrastructure repository to adhere to a pattern; every Nix file is a flake-parts module. I have found this pattern liberating and th…

---

## [Best Practices for Network Tests during Nix-Build](https://discourse.nixosstag.fcio.net/t/best-practices-for-network-tests-during-nix-build/5564)

<div class="topic-metadata">

**Author:** [@allentian](https://discourse.nixosstag.fcio.net/u/allentian)\
**Replies:** 4\
**Last updated:** [August 7, 2025, 8:34pm UTC](https://discourse.nixosstag.fcio.net/t/best-practices-for-network-tests-during-nix-build/5564 "2025-08-07T20:34:36Z")

</div>

Network test is not supported inside a nix-build except localhost. How to use localhost and random port? And is it better to use a network namespace?

---

## [How to install xournalpp with tex math formula support](https://discourse.nixosstag.fcio.net/t/how-to-install-xournalpp-with-tex-math-formula-support/60591)

<div class="topic-metadata">

**Author:** [@AchmadFathoni](https://discourse.nixosstag.fcio.net/u/AchmadFathoni)\
**Replies:** 1\
**Last updated:** [August 7, 2025, 10:16am UTC](https://discourse.nixosstag.fcio.net/t/how-to-install-xournalpp-with-tex-math-formula-support/60591 "2025-08-07T10:16:58Z")

</div>

This is the minimal requirements with home manager. packages = with pkgs; \[ xournalpp (texlive.combine { inherit (texlive) scheme-basic standalone varwidth scontents xcolor; }) \] Try these latex to make m…

---

## [Cenralizing Control Over Polyrepo With Follows](https://discourse.nixosstag.fcio.net/t/cenralizing-control-over-polyrepo-with-follows/67545)

<div class="topic-metadata">

**Author:** [@psionik](https://discourse.nixosstag.fcio.net/u/psionik)\
**Replies:** 0\
**Last updated:** [August 3, 2025, 3:23pm UTC](https://discourse.nixosstag.fcio.net/t/cenralizing-control-over-polyrepo-with-follows/67545 "2025-08-03T15:23:51Z")

</div>

Described (with an example flake linked) is how to make poly repo always wind up with known sets of versions by defining concrete inputs in one central flake and using follows everywhere else. I made some corrections.…

---

## [A practical kickstart to home manager](https://discourse.nixosstag.fcio.net/t/a-practical-kickstart-to-home-manager/40180)

<div class="topic-metadata">

**Author:** [@evertras](https://discourse.nixosstag.fcio.net/u/evertras)\
**Replies:** 6\
**Last updated:** [August 1, 2025, 12:41pm UTC](https://discourse.nixosstag.fcio.net/t/a-practical-kickstart-to-home-manager/40180 "2025-08-01T12:41:19Z")

</div>

When I first tried Nix, I spent a lot of time bouncing off various in-depth tutorials and documentation, but it had taken me a while to actually get started with anything really useful to build on. Some coworkers were…

---

## [Asus Zenbook Duo (2024 / UX8406MA) & NixOS](https://discourse.nixosstag.fcio.net/t/asus-zenbook-duo-2024-ux8406ma-nixos/39792)

<div class="topic-metadata">

**Author:** [@mfenniak](https://discourse.nixosstag.fcio.net/u/mfenniak)\
**Replies:** 140\
**Last updated:** [July 26, 2025, 12:35am UTC](https://discourse.nixosstag.fcio.net/t/asus-zenbook-duo-2024-ux8406ma-nixos/39792 "2025-07-26T00:35:14Z")

</div>

This week the Zenbook Duo (UX8406MA) was released to the public. This is a neat little dual-screen laptop with a primary screen, and a secondary screen underneath a removable bluetooth keyboard & trackpad. I’ve been pl…

---

## [Sharing my NixOS install steps for feedback](https://discourse.nixosstag.fcio.net/t/sharing-my-nixos-install-steps-for-feedback/67008)

<div class="topic-metadata">

**Author:** [@jegher](https://discourse.nixosstag.fcio.net/u/jegher)\
**Replies:** 0\
**Last updated:** [July 21, 2025, 9:33am UTC](https://discourse.nixosstag.fcio.net/t/sharing-my-nixos-install-steps-for-feedback/67008 "2025-07-21T09:33:22Z")

</div>

Hi, I recently started using NixOS and made this repository with the steps to install NixOS on my laptop. To sum up my setup I use disko to format the disk, systemd-boot to boot and i3 as window-manager. I am looking to…

---

## [Manually set date and time on NixOS](https://discourse.nixosstag.fcio.net/t/manually-set-date-and-time-on-nixos/13016)

<div class="topic-metadata">

**Author:** [@abdillah](https://discourse.nixosstag.fcio.net/u/abdillah)\
**Replies:** 2\
**Last updated:** [July 19, 2025, 12:13pm UTC](https://discourse.nixosstag.fcio.net/t/manually-set-date-and-time-on-nixos/13016 "2025-07-19T12:13:31Z")

</div>

Since timedatectl can’t be used, in order to change NixOS system time manually, there are two ways I found. Use hwclock --date "1970-01-01" --set then sync with system clock hwclock -s. Use date -s "1970-01-01" But, …

---

## [NixOS-LiveCD-CN - Customized NixOS Live CD for build](https://discourse.nixosstag.fcio.net/t/nixos-livecd-cn-customized-nixos-live-cd-for-build/66462)

<div class="topic-metadata">

**Author:** [@zjm54321](https://discourse.nixosstag.fcio.net/u/zjm54321)\
**Replies:** 0\
**Last updated:** [July 9, 2025, 11:05am UTC](https://discourse.nixosstag.fcio.net/t/nixos-livecd-cn-customized-nixos-live-cd-for-build/66462 "2025-07-09T11:05:04Z")

</div>

NixOS-LiveCD-CN - 专为中国用户定制的NixOS Live CD 项目背景 这个 LiveCD 是我为了解决在新设备上不能直接部署我的现有配置，而必须创建一个最小系统配置，然后才能远程部署所解决的。 它解决了如下问题： 我所在的地区无法直连 GitHub 与 cache 我的 flake 里有私人仓库，需要 SSH & GPG 密钥才能访问 项目简介 这是一个基于官方 NixOS Gnome 安装镜像…

---

## [Smokeping service](https://discourse.nixosstag.fcio.net/t/smokeping-service/66419)

<div class="topic-metadata">

**Author:** [@randomizedcoder](https://discourse.nixosstag.fcio.net/u/randomizedcoder)\
**Replies:** 1\
**Last updated:** [July 6, 2025, 4:49pm UTC](https://discourse.nixosstag.fcio.net/t/smokeping-service/66419 "2025-07-06T16:49:26Z")

</div>

G’day, It took longer than expected to get Smokeping working, so I thought I would post a working example for others. Now it will be indexed :slight\_smile: I notice there is no maintainer, and I guess if there was int…

---

## [How I quickly search Nix packages and options with Firefox keywords](https://discourse.nixosstag.fcio.net/t/how-i-quickly-search-nix-packages-and-options-with-firefox-keywords/66412)

<div class="topic-metadata">

**Author:** [@Oneechan69](https://discourse.nixosstag.fcio.net/u/Oneechan69)\
**Replies:** 2\
**Last updated:** [July 6, 2025, 12:10pm UTC](https://discourse.nixosstag.fcio.net/t/how-i-quickly-search-nix-packages-and-options-with-firefox-keywords/66412 "2025-07-06T12:10:35Z")

</div>

Instead of going to a website and using its search bar, you can make searches inside the site directly from Firefox’s URL bar using smart keywords: How to search IMDB, Wikipedia and more from the address bar | Firefox He…

---

## [Install a Nix Package from an Unmerged Pull Request](https://discourse.nixosstag.fcio.net/t/install-a-nix-package-from-an-unmerged-pull-request/66337)

<div class="topic-metadata">

**Author:** [@tesy](https://discourse.nixosstag.fcio.net/u/tesy)\
**Replies:** 3\
**Last updated:** [July 5, 2025, 1:08am UTC](https://discourse.nixosstag.fcio.net/t/install-a-nix-package-from-an-unmerged-pull-request/66337 "2025-07-05T01:08:28Z")

</div>

Sometimes, you need a package that has not yet been merged into the nixpkgs repository. This guide demonstrates how to achieve that using Nix package overlays. See the full article for more details. # flake.nix inputs…

---

## [Multi Monitor GDM Help](https://discourse.nixosstag.fcio.net/t/multi-monitor-gdm-help/60348)

<div class="topic-metadata">

**Author:** [@hid4ri](https://discourse.nixosstag.fcio.net/u/hid4ri)\
**Replies:** 1\
**Last updated:** [July 2, 2025, 4:43pm UTC](https://discourse.nixosstag.fcio.net/t/multi-monitor-gdm-help/60348 "2025-07-02T16:43:25Z")

</div>

Hi All, I thought I would share something to help you if you are struggling in getting the GDM login screen to not show on the correct monitor if you have multi monitor setup. you have to first create a monitor.xml file…

---

## [Pattern: integrated patched flake inputs](https://discourse.nixosstag.fcio.net/t/pattern-integrated-patched-flake-inputs/65268)

<div class="topic-metadata">

**Author:** [@mightyiam](https://discourse.nixosstag.fcio.net/u/mightyiam)\
**Replies:** 5\
**Last updated:** [July 1, 2025, 2:29pm UTC](https://discourse.nixosstag.fcio.net/t/pattern-integrated-patched-flake-inputs/65268 "2025-07-01T14:29:04Z")

</div>

I recently came up with a certain pattern of maintaining and using patched flake input branches. After a few days of using this pattern I decided it seems useful enough to share. The documentation is currently under a …

---

## [How To: really atomic updates for NixOS - avoiding breakages](https://discourse.nixosstag.fcio.net/t/how-to-really-atomic-updates-for-nixos-avoiding-breakages/63011)

<div class="topic-metadata">

**Author:** [@BoredSquirrel](https://discourse.nixosstag.fcio.net/u/BoredSquirrel)\
**Replies:** 19\
**Last updated:** [June 23, 2025, 11:01pm UTC](https://discourse.nixosstag.fcio.net/t/how-to-really-atomic-updates-for-nixos-avoiding-breakages/63011 "2025-06-23T23:01:49Z")

</div>

By default, manuals reference sudo nixos-rebuild switch as the way to rebuild the system everywhere. This way swaps out and restarts various components, and can cause a lot of breakages. While in theory it may work, thi…

---

## [How to use kaccounts](https://discourse.nixosstag.fcio.net/t/how-to-use-kaccounts/14533)

<div class="topic-metadata">

**Author:** [@leznom](https://discourse.nixosstag.fcio.net/u/leznom)\
**Replies:** 1\
**Last updated:** [June 21, 2025, 8:46am UTC](https://discourse.nixosstag.fcio.net/t/how-to-use-kaccounts/14533 "2025-06-21T08:46:49Z")

</div>

Good evening, I have tried to link google and nextcloud accounts for storage by kaccounts and I have not been able to. I could make them work separately (nextcloud with webdev and google with gdrive) but I do not conside…

---

## [Example: integration testing a flake](https://discourse.nixosstag.fcio.net/t/example-integration-testing-a-flake/65815)

<div class="topic-metadata">

**Author:** [@mightyiam](https://discourse.nixosstag.fcio.net/u/mightyiam)\
**Replies:** 1\
**Last updated:** [June 19, 2025, 2:45pm UTC](https://discourse.nixosstag.fcio.net/t/example-integration-testing-a-flake/65815 "2025-06-19T14:45:56Z")

</div>

---

## [Disabling the GNOME UI font's contextual substitutions](https://discourse.nixosstag.fcio.net/t/disabling-the-gnome-ui-fonts-contextual-substitutions/65666)

<div class="topic-metadata">

**Author:** [@rhendric](https://discourse.nixosstag.fcio.net/u/rhendric)\
**Replies:** 2\
**Last updated:** [June 18, 2025, 6:27pm UTC](https://discourse.nixosstag.fcio.net/t/disabling-the-gnome-ui-fonts-contextual-substitutions/65666 "2025-06-18T18:27:19Z")

</div>

I know this is the sort of nitpicky detail that maybe only one other person is ever going to care about, but GNOME 48 is shipping with a new default UI font that is a little too eager to do things like replace ‘-\>’ with …

---

## [How to use fingerprint unlocking - How to set up Fprintd (English)](https://discourse.nixosstag.fcio.net/t/how-to-use-fingerprint-unlocking-how-to-set-up-fprintd-english/21901)

<div class="topic-metadata">

**Author:** [@matheusalmeida.me](https://discourse.nixosstag.fcio.net/u/matheusalmeida.me)\
**Replies:** 25\
**Last updated:** [June 17, 2025, 1:53pm UTC](https://discourse.nixosstag.fcio.net/t/how-to-use-fingerprint-unlocking-how-to-set-up-fprintd-english/21901 "2025-06-17T13:53:48Z")

</div>

Hello, Recently I went into the “world” NixOS, and at first I had difficulties to be able to use screen unlock ing with the fingerprint sensor of my notebook, after much difficulty and the union of several solutions, I c…

---

## [Enable static dns server for iwd standalone](https://discourse.nixosstag.fcio.net/t/enable-static-dns-server-for-iwd-standalone/58656)

<div class="topic-metadata">

**Author:** [@taha](https://discourse.nixosstag.fcio.net/u/taha)\
**Replies:** 2\
**Last updated:** [June 14, 2025, 4:43pm UTC](https://discourse.nixosstag.fcio.net/t/enable-static-dns-server-for-iwd-standalone/58656 "2025-06-14T16:43:23Z")

</div>

If your using iwd standalone (without NetworkManager and dhcpcd) then you might have tried networking.nameservers = \[ "1.1.1.1" \];, but this does not work :frowning: If you cat /etc/resolv.conf then you would see names…

---

## [Dead man switch for nixos-rebuild switch / boot](https://discourse.nixosstag.fcio.net/t/dead-man-switch-for-nixos-rebuild-switch-boot/63988)

<div class="topic-metadata">

**Author:** [@aou](https://discourse.nixosstag.fcio.net/u/aou)\
**Replies:** 6\
**Last updated:** [June 13, 2025, 12:35am UTC](https://discourse.nixosstag.fcio.net/t/dead-man-switch-for-nixos-rebuild-switch-boot/63988 "2025-06-13T00:35:29Z")

</div>

blog post tldr; switch-fix.nix lets you set an automatic rollback to current generation / profile on nixos-rebuild \[switch | boot\] unless you cancel with cancel-rollback from a terminal within a set amount of time

---

## [Enabling Xiaomi PC Manager hotkey in Xiaomi RedmiBook Pro 14/16](https://discourse.nixosstag.fcio.net/t/enabling-xiaomi-pc-manager-hotkey-in-xiaomi-redmibook-pro-14-16/65375)

<div class="topic-metadata">

**Author:** [@synalice](https://discourse.nixosstag.fcio.net/u/synalice)\
**Replies:** 3\
**Last updated:** [June 12, 2025, 7:43am UTC](https://discourse.nixosstag.fcio.net/t/enabling-xiaomi-pc-manager-hotkey-in-xiaomi-redmibook-pro-14-16/65375 "2025-06-12T07:43:30Z")

</div>

I intended this to be a guide, but failed right next to the finish line… In laptops Xiaomi RedmiBook Pro 14 and Xiaomi RedmiBook Pro 16 there is this special button. On Windows 10/11 it launches a special program called…

---

## [A Modern and Secure Desktop Setup](https://discourse.nixosstag.fcio.net/t/a-modern-and-secure-desktop-setup/41154)

<div class="topic-metadata">

**Author:** [@balint](https://discourse.nixosstag.fcio.net/u/balint)\
**Replies:** 39\
**Last updated:** [June 11, 2025, 11:34am UTC](https://discourse.nixosstag.fcio.net/t/a-modern-and-secure-desktop-setup/41154 "2025-06-11T11:34:46Z")

</div>

It took me quite a while to get to this setup so I thought I would write a guide to help others and also to discuss feedback and other desktop setups. I’m currently running NixOS on my Tuxedo Pulse 14, a Surface Pro 6, …

---

## [Nix(OS) for beginners, explained with concepts from Python](https://discourse.nixosstag.fcio.net/t/nix-os-for-beginners-explained-with-concepts-from-python/65226)

<div class="topic-metadata">

**Author:** [@bittner](https://discourse.nixosstag.fcio.net/u/bittner)\
**Replies:** 4\
**Last updated:** [June 10, 2025, 11:01am UTC](https://discourse.nixosstag.fcio.net/t/nix-os-for-beginners-explained-with-concepts-from-python/65226 "2025-06-10T11:01:32Z")

</div>

Hi there! I have held a talk called “Nix(OS) for Python Developers” at PyCon Italia, recently. There was a lot of interest, and I have now managed to write a blog post as a summary of my findings. I’m rather fresh to…

---

## [Declare Firefox extensions and settings](https://discourse.nixosstag.fcio.net/t/declare-firefox-extensions-and-settings/36265)

<div class="topic-metadata">

**Author:** [@sleepy](https://discourse.nixosstag.fcio.net/u/sleepy)\
**Replies:** 40\
**Last updated:** [June 2, 2025, 5:30am UTC](https://discourse.nixosstag.fcio.net/t/declare-firefox-extensions-and-settings/36265 "2025-06-02T05:30:37Z")

</div>

Hello everyone! I’m on a quest to declaratively manage as much of my system as possible. As part of this journey, I recently tackled Firefox’ configuration including extensions/add-ons and preferences. Because I’m fairl…

---

## [Configuration for ThinkPad T14s Gen 6 (Snapdragon X Elite X1E-78-100)](https://discourse.nixosstag.fcio.net/t/configuration-for-thinkpad-t14s-gen-6-snapdragon-x-elite-x1e-78-100/56389)

<div class="topic-metadata">

**Author:** [@ookhoi](https://discourse.nixosstag.fcio.net/u/ookhoi)\
**Replies:** 44\
**Last updated:** [May 29, 2025, 12:06pm UTC](https://discourse.nixosstag.fcio.net/t/configuration-for-thinkpad-t14s-gen-6-snapdragon-x-elite-x1e-78-100/56389 "2025-05-29T12:06:18Z")

</div>

I would like to share the relevant part of my configuration as I spent quite some time to get NixOS booting on my ThinkPad T14s Gen 6 (Snapdragon X Elite X1E-78-100). This would not have been possible without the workin…

---

## [HowTo: use dash as default shell, fix error "SHELL not defined in /etc/shells"](https://discourse.nixosstag.fcio.net/t/howto-use-dash-as-default-shell-fix-error-shell-not-defined-in-etc-shells/64661)

<div class="topic-metadata">

**Author:** [@BoredSquirrel](https://discourse.nixosstag.fcio.net/u/BoredSquirrel)\
**Replies:** 2\
**Last updated:** [May 26, 2025, 6:43am UTC](https://discourse.nixosstag.fcio.net/t/howto-use-dash-as-default-shell-fix-error-shell-not-defined-in-etc-shells/64661 "2025-05-26T06:43:53Z")

</div>

Intro dash is a pretty old but still more minimal shell. It is an alternative to bash. It is purely POSIX-compliant, while bash uses some extra functions and syntax (“bashisms”) which break when using dash. Dash can of…

---

## [Fix for Jellyseerr when upgrading to NixOS 25.05 (beta)](https://discourse.nixosstag.fcio.net/t/fix-for-jellyseerr-when-upgrading-to-nixos-25-05-beta/64451)

<div class="topic-metadata">

**Author:** [@MatthieuB](https://discourse.nixosstag.fcio.net/u/MatthieuB)\
**Replies:** 2\
**Last updated:** [May 21, 2025, 7:03am UTC](https://discourse.nixosstag.fcio.net/t/fix-for-jellyseerr-when-upgrading-to-nixos-25-05-beta/64451 "2025-05-21T07:03:27Z")

</div>

Jellyseerr config/data directory were changed, after upgrading to NixOS 25.05 Jellyseerr will looks like a fresh install asking you to configure it. Here is how to restore your data, run the following commands as root o…

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