feat(gtk): prefer dark mode
This commit is contained in:
parent
94f0ec3f82
commit
307ae1bac9
3 changed files with 19 additions and 2 deletions
|
|
@ -1,10 +1,13 @@
|
||||||
{ lib, nixosConfig, ... }: {
|
{ lib, nixosConfig, ... }: {
|
||||||
|
|
||||||
dconf.settings = lib.mkIf nixosConfig.bchmnn.virtualisation.enable {
|
dconf.settings = {
|
||||||
"org/virt-manager/virt-manager/connections" = {
|
"org/virt-manager/virt-manager/connections" = lib.mkIf nixosConfig.bchmnn.virtualisation.enable {
|
||||||
autoconnect = [ "qemu:///system" ];
|
autoconnect = [ "qemu:///system" ];
|
||||||
uris = [ "qemu:///system" ];
|
uris = [ "qemu:///system" ];
|
||||||
};
|
};
|
||||||
|
"org/gnome/desktop/interface" = {
|
||||||
|
"color-scheme" = "prefer-dark";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
imports = with lib; with nixosConfig.bchmnn;
|
imports = with lib; with nixosConfig.bchmnn;
|
||||||
optionals gui.enable [
|
optionals gui.enable [
|
||||||
|
./gtk.nix
|
||||||
./programs
|
./programs
|
||||||
] ++ optionals (gui.enable && elem "sway" gui.flavour) [
|
] ++ optionals (gui.enable && elem "sway" gui.flavour) [
|
||||||
./sway
|
./sway
|
||||||
|
|
|
||||||
13
users/gandalf/modules/gui/gtk.nix
Normal file
13
users/gandalf/modules/gui/gtk.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{ ... }: {
|
||||||
|
|
||||||
|
gtk = {
|
||||||
|
enable = true;
|
||||||
|
gtk3.extraConfig = {
|
||||||
|
gtk-application-prefer-dark-theme = 1;
|
||||||
|
};
|
||||||
|
gtk4.extraConfig = {
|
||||||
|
gtk-application-prefer-dark-theme = 1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue