98 lines
2.1 KiB
Nix
98 lines
2.1 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}:
|
|
{
|
|
imports = [
|
|
./gtk.nix
|
|
./qt.nix
|
|
./systemd.nix
|
|
];
|
|
|
|
home.file = {
|
|
".icons/default/index.theme" = {
|
|
text = ''
|
|
[Icon Theme]
|
|
Name=Default
|
|
Comment=Default Cursor Theme
|
|
Inherits=${config.userOptions.cursor.name}
|
|
'';
|
|
force = true;
|
|
};
|
|
};
|
|
|
|
dconf.settings = {
|
|
"org/gnome/desktop/interface" = {
|
|
color-scheme = "prefer-dark";
|
|
clock-format = "12h";
|
|
clock-show-weekday = true;
|
|
};
|
|
"org/gnome/desktop/wm/preferences" = {
|
|
button-layout = ":";
|
|
action-double-click-titlebar = "'none'";
|
|
};
|
|
"org/gnome/desktop/media-handling" = {
|
|
automount = false;
|
|
automount-open = false;
|
|
autorun-never = true;
|
|
};
|
|
"org/gnome/settings-daemon/plugins/power" = {
|
|
sleep-inactive-ac-type = "nothing";
|
|
};
|
|
"org/gnome/mutter" = {
|
|
edge-tiling = true;
|
|
dynamic-workspaces = true;
|
|
experimental-features = [ "variable-refresh-rate" ];
|
|
};
|
|
};
|
|
|
|
home.pointerCursor = {
|
|
gtk.enable = true;
|
|
name = config.userOptions.cursor.name;
|
|
package = config.userOptions.cursor.package;
|
|
size = config.userOptions.cursor.size;
|
|
};
|
|
|
|
home.sessionVariables = {
|
|
QT_QPA_PLATFORMTHEME = "qt6ct";
|
|
# this makes electron apps work per the wiki
|
|
NIXOS_OZONE_WL = "1";
|
|
};
|
|
|
|
gtk = {
|
|
enable = true;
|
|
|
|
# colorScheme = if config.userOptions.isDark then "dark" else "light";
|
|
|
|
# theme = {
|
|
# package = pkgs.kdePackages.breeze-gtk;
|
|
# name =
|
|
# if config.userOptions.isDark
|
|
# then "Breeze-Dark"
|
|
# else "Breeze";
|
|
# };
|
|
|
|
colorScheme = "dark";
|
|
iconTheme = {
|
|
name = "MoreWaita";
|
|
package = pkgs.morewaita-icon-theme;
|
|
};
|
|
|
|
cursorTheme = {
|
|
name = config.home.pointerCursor.name;
|
|
package = config.home.pointerCursor.package;
|
|
size = config.home.pointerCursor.size;
|
|
};
|
|
|
|
gtk3.extraConfig = {
|
|
gtk-application-prefer-dark-theme = true;
|
|
gtk-decoration-layout = ":";
|
|
};
|
|
|
|
gtk4.extraConfig = {
|
|
gtk-application-prefer-dark-theme = true;
|
|
gtk-decoration-layout = ":";
|
|
};
|
|
};
|
|
}
|