this post was submitted on 02 Jun 2025
12 points (100.0% liked)

Nix / NixOS

2254 readers
1 users here now

Main links

Videos

founded 2 years ago
MODERATORS
 

Basically the title. I would like apps that auto detect system theme to see it as dark mode. I’ve come across post after post of doing this with home manager, but I’d like to just do it in my base nix config. I tried a few different ways to declare what I thought was being done in the home manager tutorials in my config, but none of it worked. Any help would be greatly appreciated!

you are viewing a single comment's thread
view the rest of the comments
[–] axEl7fB5@lemmy.cafe 2 points 3 days ago* (last edited 3 days ago) (1 children)

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:

dconf.settings."org/gnome/desktop/interface" = {
  color-scheme = "prefer-dark";
  gtk-theme = "Adwaita-dark";
};

I got this from a blog: https://web.archive.org/web/20220927232409/https://hoverbear.org/blog/declarative-gnome-configuration-in-nixos/.

[–] Arkhive@lemmy.blahaj.zone 1 points 3 days ago

Yes! Love that you did this. Helping make the fediverse a knowledge base like the other site was. 🫡