this post was submitted on 02 Jun 2025
11 points (100.0% liked)
Nix / NixOS
2245 readers
1 users here now
Main links
Videos
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If you have a mostly Gnome system then you can make sure to run these lines when you login:
I have two simple shell scripts,
prefer-light
andprefer-dark
that I run when I want to switch:If you want to go deeper and also affect Qt applications and such, then you can always look at the Home Manager source code to see the files that it writes when you follow the tutorials.
I know OP doesn't want to use Home Manager and doesn't use GNOME, but for the other people who use it: you can configure it like this:
I got this from a blog: https://web.archive.org/web/20220927232409/https://hoverbear.org/blog/declarative-gnome-configuration-in-nixos/.
Yes! Love that you did this. Helping make the fediverse a knowledge base like the other site was. 🫡