nixos-configuration/nix-os/desktopManagers/gnome.nix

94 lines
2.9 KiB
Nix
Raw Permalink Normal View History

{config, lib, pkgs, ... }:
2024-03-13 10:59:04 +01:00
let
maxThumbnails = config.programs.gnome.extensions.workspaceIndicator.maxThumbnails;
workspaceIndicator = pkgs.gnomeExtensions.workspace-indicator.overrideAttrs {
postPatch = ''
2024-06-09 12:42:42 +02:00
sed -i 's/const MAX_THUMBNAILS = 6;/const MAX_THUMBNAILS = '${builtins.toString maxThumbnails}'/' extension.js
'';
};
in
2024-03-13 10:59:04 +01:00
{
options = {
programs.gnome.extensions.workspaceIndicator.maxThumbnails = lib.mkOption {
type = lib.types.int;
default = 11;
description = "The maximum number of thumbnails to show in the workspace indicator";
};
};
2024-03-13 10:59:04 +01:00
imports = [
../unstable-packages.nix
../dconf-common.nix
2024-03-13 10:59:04 +01:00
];
config = {
services.xserver.enable = true;
services.xserver.desktopManager.gnome.enable = true;
# environment.sessionVariables.NIXOS_OZONE_WL = "1";
proot.dconf.profiles.user.rulesToApply = [
"org/gnome/desktop/background"
"org/gnome/desktop/interface"
"org/gnome/desktop/media-handling"
"org/gnome/desktop/peripherals/mouse"
"org/gnome/desktop/sound"
"org/gnome/desktop/wm/preferences"
"org/gnome/mutter"
"org/gnome/SessionManager"
"org/gnome/settings-daemon/plugins/power"
"org/gnome/shell"
"org/gnome/shell/app-switcher"
"org/gnome/shell/extensions/color-picker"
"org/gnome/shell/extensions/pop-shell"
"org/gnome/shell/extensions/top-bar-organizer"
"org/gnome/shell/extensions/trayIconsReloaded"
"org/gnome/shell/extensions/vitals"
"org/gnome/shell/keybindings"
"org/gnome/desktop/default-applications/terminal"
"org/gnome/settings-daemon/plugins/media-keys"
"org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0"
];
2024-03-13 10:59:04 +01:00
environment.gnome.excludePackages = with pkgs; [
gnome.baobab
gnome.cheese
gnome.epiphany
gnome.evince
gnome.geary
2024-03-13 10:59:04 +01:00
gedit
gnome.gnome-characters
2024-03-13 10:59:04 +01:00
gnome-connections
gnome-console
gnome.gnome-disk-utility
gnome.gnome-font-viewer
gnome.gnome-logs
gnome.gnome-maps
2024-03-13 10:59:04 +01:00
gnome-text-editor
gnome-tour
gnome.seahorse
gnome.totem
gnome.yelp
gnome.nautilus
2024-03-13 10:59:04 +01:00
];
environment.systemPackages = with pkgs; [
workspaceIndicator
2024-03-13 10:59:04 +01:00
gnomeExtensions.pop-shell
gnomeExtensions.vitals
gnomeExtensions.tray-icons-reloaded
gnomeExtensions.color-picker
gnomeExtensions.top-bar-organizer
# unstablePkgs.gnomeExtensions.translate-indicator
# translate-shell
google-cursor
];
2024-09-14 01:49:58 +02:00
environment.etc."xdg/gtk-3.0/settings.ini".text = ''
[Settings]
gtk-cursor-theme-name=${config.proot.dconf.rules."org/gnome/desktop/interface".cursor-theme}
'' + lib.optionalString (lib.hasInfix "dark" config.proot.dconf.rules."org/gnome/desktop/interface".color-scheme) ''
gtk-application-prefer-dark-theme=true
'';
2024-03-13 10:59:04 +01:00
};
}