Enable dconf & set system-wide dark-mode

This commit is contained in:
ItsDrike 2024-06-19 18:26:16 +02:00
parent affd57d3cc
commit 4ceafed0d0
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
4 changed files with 19 additions and 0 deletions

View file

@ -29,6 +29,7 @@ in
# These imports will be scoped under this key so all settings
# in them will be added to `home-manager.users.${username}`..
imports = [
./misc
./packages
./programs
./impermanence

10
home/misc/dconf.nix Normal file
View file

@ -0,0 +1,10 @@
{
dconf.settings = {
# This is like a system-wide dark mode swithc that some apps respect
# Equivalent of the following dconf command:
# `conf write /org/gnome/desktop/interface/color-scheme "'prefer-dark'"`
"org/gnome/desktop/interface" = {
color-scheme = "prefer-dark";
};
};
}

5
home/misc/default.nix Normal file
View file

@ -0,0 +1,5 @@
{
imports = [
./dconf.nix
];
}

View file

@ -16,6 +16,9 @@ in {
# gnome's keyring manager
seahorse.enable = true;
# registry for linux (thanks to Gnome)
dconf.enable = true;
};
};
}