mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 03:31:34 +01:00
Make theming a part of the DE config
This commit is contained in:
parent
343b15177f
commit
f22f1fabe0
4 changed files with 37 additions and 47 deletions
|
|
@ -13,6 +13,7 @@ in {
|
|||
wallpaper = lib.mkOption {
|
||||
type = lib.types.path;
|
||||
};
|
||||
theming.enable = lib.mkEnableOption "";
|
||||
tray = {
|
||||
syncthing.enable = lib.mkEnableOption "";
|
||||
networkmanager.enable = lib.mkEnableOption "";
|
||||
|
|
@ -20,6 +21,41 @@ in {
|
|||
};
|
||||
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf config.myConfig.theming.enable {
|
||||
dconf.settings."org/gnome/desktop/interface".color-scheme = "prefer-dark";
|
||||
|
||||
gtk = {
|
||||
enable = true;
|
||||
|
||||
gtk2.configLocation = "${config.xdg.configHome}/gtk-2.0/gtkrc";
|
||||
|
||||
theme.name = "Adwaita-dark";
|
||||
theme.package = pkgs.gnome.gnome-themes-extra;
|
||||
|
||||
iconTheme.name = "Adwaita";
|
||||
iconTheme.package = pkgs.gnome.adwaita-icon-theme;
|
||||
|
||||
font.name = "Open Sans";
|
||||
font.package = pkgs.open-sans;
|
||||
};
|
||||
|
||||
qt = {
|
||||
enable = true;
|
||||
platformTheme = "gnome";
|
||||
style.name = "adwaita-dark";
|
||||
style.package = pkgs.adwaita-qt;
|
||||
};
|
||||
|
||||
home.pointerCursor = {
|
||||
name = "Bibata-Original-Classic";
|
||||
package = pkgs.bibata-cursors;
|
||||
size = 24;
|
||||
x11.enable = true;
|
||||
x11.defaultCursor = "X_cursor";
|
||||
gtk.enable = true;
|
||||
};
|
||||
})
|
||||
|
||||
(lib.mkIf cfg.tray.syncthing.enable {
|
||||
assertions = [
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue