mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11:34 +01:00
Do some minor refactoring
This commit is contained in:
parent
ea509959ff
commit
472d0eea96
9 changed files with 29 additions and 21 deletions
|
|
@ -5,7 +5,7 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
cfgTheme = config.custom.theme;
|
||||
inherit (config.custom) theme;
|
||||
in
|
||||
{
|
||||
options.custom.theme = lib.mkOption {
|
||||
|
|
@ -22,8 +22,10 @@ in
|
|||
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
||||
theme.package = pkgs.gnome-themes-extra;
|
||||
iconTheme.package = pkgs.papirus-icon-theme;
|
||||
font.name = "Open Sans";
|
||||
font.package = pkgs.open-sans;
|
||||
font = {
|
||||
name = "Open Sans";
|
||||
package = pkgs.open-sans;
|
||||
};
|
||||
};
|
||||
qt = {
|
||||
enable = true;
|
||||
|
|
@ -37,18 +39,22 @@ in
|
|||
};
|
||||
}
|
||||
|
||||
(lib.mkIf (cfgTheme == "dark") {
|
||||
(lib.mkIf (theme == "dark") {
|
||||
dconf.settings."org/gnome/desktop/interface".color-scheme = "prefer-dark";
|
||||
gtk.theme.name = "Adwaita-dark";
|
||||
gtk.iconTheme.name = "Papirus-Dark";
|
||||
gtk = {
|
||||
theme.name = "Adwaita-dark";
|
||||
iconTheme.name = "Papirus-Dark";
|
||||
};
|
||||
qt.style.name = "adwaita-dark";
|
||||
home.pointerCursor.name = "Bibata-Original-Classic";
|
||||
})
|
||||
|
||||
(lib.mkIf (cfgTheme == "light") {
|
||||
(lib.mkIf (theme == "light") {
|
||||
dconf.settings."org/gnome/desktop/interface".color-scheme = "prefer-light";
|
||||
gtk.theme.name = "Adwaita";
|
||||
gtk.iconTheme.name = "Papirus";
|
||||
gtk = {
|
||||
theme.name = "Adwaita";
|
||||
iconTheme.name = "Papirus";
|
||||
};
|
||||
qt.style.name = "adwaita";
|
||||
home.pointerCursor.name = "Bibata-Original-Ice";
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue