home, theme: split configuations
This commit is contained in:
parent
99b5ec8877
commit
107349d45a
3 changed files with 33 additions and 41 deletions
|
@ -24,6 +24,12 @@
|
||||||
GTK_IM_MODULE = lib.mkForce "wayland"; # use text-input-v3
|
GTK_IM_MODULE = lib.mkForce "wayland"; # use text-input-v3
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dconf.settings = {
|
||||||
|
"org/gnome/desktop/wm/preferences" = {
|
||||||
|
"button-layout" = "icon,appmenu:"; # remove csd window buttons
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
pamixer
|
pamixer
|
||||||
brightnessctl
|
brightnessctl
|
||||||
|
|
|
@ -15,6 +15,28 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
gtk.font.name = "Sans";
|
||||||
|
dconf.settings = {
|
||||||
|
"org/gnome/desktop/wm/preferences" = {
|
||||||
|
"titlebar-font" = "Sans Bold";
|
||||||
|
};
|
||||||
|
"org/gnome/desktop/interface" = {
|
||||||
|
"document-font-name" = "Sans";
|
||||||
|
"monospace-font-name" = "Monospace";
|
||||||
|
# "font-name" is unneeded
|
||||||
|
# https://github.com/nix-community/home-manager/blob/8765d4e38aa0be53cdeee26f7386173e6c65618d/modules/misc/gtk.nix#L237C19-L237C19
|
||||||
|
};
|
||||||
|
};
|
||||||
|
xresources.properties = {
|
||||||
|
# Fonts
|
||||||
|
"Xft.autohint" = "0";
|
||||||
|
"Xft.lcdfilter" = "lcddefault";
|
||||||
|
"Xft.hintstyle" = "hintslight";
|
||||||
|
"Xft.hinting" = "1";
|
||||||
|
"Xft.antialias" = "1";
|
||||||
|
"Xft.rgba" = "rgb";
|
||||||
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
### Inter
|
### Inter
|
||||||
inter
|
inter
|
||||||
|
|
|
@ -28,56 +28,20 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
### Font
|
### GTK
|
||||||
gtk.font.name = "Sans";
|
|
||||||
|
|
||||||
### GTK theme
|
|
||||||
gtk.theme = {
|
gtk.theme = {
|
||||||
name = "adw-gtk3-dark";
|
name = "adw-gtk3-dark";
|
||||||
package = pkgs.adw-gtk3;
|
package = pkgs.adw-gtk3;
|
||||||
};
|
};
|
||||||
|
|
||||||
### Dconf
|
|
||||||
dconf.settings = {
|
dconf.settings = {
|
||||||
"org/gnome/desktop/wm/preferences" = {
|
|
||||||
"titlebar-font" = "Sans Bold";
|
|
||||||
"button-layout" = "icon,appmenu:"; # remove csd window buttons
|
|
||||||
};
|
|
||||||
"org/gnome/desktop/interface" = {
|
"org/gnome/desktop/interface" = {
|
||||||
"document-font-name" = "Sans";
|
|
||||||
"monospace-font-name" = "Monospace";
|
|
||||||
# "font-name" is unneeded
|
|
||||||
# https://github.com/nix-community/home-manager/blob/8765d4e38aa0be53cdeee26f7386173e6c65618d/modules/misc/gtk.nix#L237C19-L237C19
|
|
||||||
|
|
||||||
"clock-format" = "12h";
|
"clock-format" = "12h";
|
||||||
"color-scheme" = "prefer-dark";
|
"color-scheme" = "prefer-dark";
|
||||||
|
|
||||||
# i want to split dconf but
|
|
||||||
#
|
|
||||||
# error: attribute '"org/gnome/desktop/interface"' already defined at /nix/store/cjr3qn1kg0z268dnbmc2vry4sbgqvnvm-source/users/guanranwang/home-manager/nixos/theming.nix:52:5
|
|
||||||
#
|
|
||||||
# at /nix/store/cjr3qn1kg0z268dnbmc2vry4sbgqvnvm-source/users/guanranwang/home-manager/nixos/theming.nix:36:5:
|
|
||||||
#
|
|
||||||
# 35| };
|
|
||||||
# 36| "org/gnome/desktop/interface" = {
|
|
||||||
# | ^
|
|
||||||
# 37| "document-font-name" = "Sans";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Misc
|
# X11
|
||||||
xresources = {
|
xresources.extraConfig =
|
||||||
properties = {
|
|
||||||
# Fonts
|
|
||||||
"Xft.autohint" = "0";
|
|
||||||
"Xft.lcdfilter" = "lcddefault";
|
|
||||||
"Xft.hintstyle" = "hintslight";
|
|
||||||
"Xft.hinting" = "1";
|
|
||||||
"Xft.antialias" = "1";
|
|
||||||
"Xft.rgba" = "rgb";
|
|
||||||
};
|
|
||||||
extraConfig =
|
|
||||||
lib.mkIf (config.myFlake.home-manager.colorScheme == "tokyonight")
|
lib.mkIf (config.myFlake.home-manager.colorScheme == "tokyonight")
|
||||||
(builtins.readFile "${pkgs.vimPlugins.tokyonight-nvim}/extras/xresources/tokyonight_night.Xresources");
|
(builtins.readFile "${pkgs.vimPlugins.tokyonight-nvim}/extras/xresources/tokyonight_night.Xresources");
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue