gnome: update config

This commit is contained in:
Leonardo Eugênio 2023-06-02 17:55:54 -03:00
parent bd275e8982
commit 8bbdb28d32
6 changed files with 146 additions and 22 deletions

View file

@ -1,15 +1,32 @@
{ pkgs, lib, ... }: lib.mkIf (pkgs.uservars.desktop == "gnome") {
{ pkgs, lib, inputs, ... }: lib.mkIf (pkgs.uservars.desktop == "gnome") {
dconf.settings = with pkgs; with uservars.theme; {
dconf.settings = {
"org/gnome/desktop/interface" = {
gtk-theme = gtk_theme;
icon-theme = icon_theme;
cursor-theme = cursor_theme;
color-scheme = "prefer-${color.type}";
# gtk-theme = "Adwaita";
# icon-theme = "Adwaita";
# cursor-theme = "Adwaita";
# color-scheme = "default";
};
"org/gnome/desktop/wm/preferences" = lib.mkForce {
button-layout = "menu:close";
button-layout = "appmenu:close";
};
};
home.sessionVariables = {
LD_PRELOAD = "";
GTK_CSD = "1";
};
home.packages = with pkgs; [
inputs.nixos-conf-editor.packages.${pkgs.system}.nixos-conf-editor
inputs.nix-software-center.packages.${pkgs.system}.nix-software-center
adw-gtk3
newsflash
foliate
lollypop
pitivi
];
}

View file

@ -1,8 +1,9 @@
{ config, pkgs, lib, inputs, ... }:
let
inherit (pkgs.uservars) theme font;
inherit (pkgs.uservars) theme font desktop;
inherit (theme) color gtk_theme icon_theme cursor_theme;
in
lib.mkIf (desktop == "sway")
{
home.pointerCursor = {
name = cursor_theme;