2024-06-24 11:38:28 -04:00
|
|
|
# Enables the Gnome desktop environment.
|
2024-05-07 18:02:59 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-02-29 09:53:34 -05:00
|
|
|
|
|
|
|
let
|
2024-06-24 11:38:28 -04:00
|
|
|
cfg = config.aux.system.ui.desktops.gnome;
|
2024-02-29 09:53:34 -05:00
|
|
|
in
|
|
|
|
{
|
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
options = {
|
2024-06-26 13:19:06 -04:00
|
|
|
aux.system.ui.desktops.gnome = {
|
|
|
|
enable = lib.mkEnableOption (lib.mdDoc "Enables the Gnome Desktop Environment.");
|
|
|
|
tripleBuffering.enable = lib.mkEnableOption (
|
|
|
|
lib.mdDoc "(Experimental) Enables dynamic triple buffering"
|
|
|
|
);
|
|
|
|
};
|
2024-05-07 18:02:59 -04:00
|
|
|
};
|
|
|
|
|
2024-06-24 11:38:28 -04:00
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
aux.system.ui.desktops.enable = true;
|
2024-05-07 18:02:59 -04:00
|
|
|
|
2024-06-24 11:38:28 -04:00
|
|
|
# Enable Gnome
|
2024-05-07 18:02:59 -04:00
|
|
|
services = {
|
|
|
|
xserver = {
|
2024-06-24 11:38:28 -04:00
|
|
|
# Remove default packages that came with the install
|
|
|
|
excludePackages = [ pkgs.xterm ];
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Enable Gnome
|
|
|
|
desktopManager.gnome.enable = true;
|
2024-05-21 09:22:03 -04:00
|
|
|
displayManager.gdm.enable = true;
|
2024-05-07 18:02:59 -04:00
|
|
|
};
|
2024-03-21 16:17:06 -04:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Install Flatpaks
|
|
|
|
flatpak.packages = [
|
2024-07-24 17:50:51 -04:00
|
|
|
"com.github.finefindus.eyedropper"
|
2024-05-07 18:02:59 -04:00
|
|
|
"com.mattjakeman.ExtensionManager"
|
|
|
|
"org.bluesabre.MenuLibre"
|
|
|
|
"org.gnome.baobab"
|
|
|
|
"org.gnome.Calculator"
|
|
|
|
"org.gnome.Characters"
|
|
|
|
"org.gnome.Calendar"
|
|
|
|
"org.gnome.Evince"
|
|
|
|
"org.gnome.Evolution"
|
|
|
|
"org.gnome.FileRoller"
|
|
|
|
"org.gnome.Firmware"
|
|
|
|
"org.gnome.gitg"
|
|
|
|
"org.gnome.Loupe" # Gnome's fancy new image viewer
|
|
|
|
"org.gnome.Music"
|
|
|
|
"org.gnome.seahorse.Application"
|
2024-05-26 12:23:12 -04:00
|
|
|
"org.gnome.Shotwell"
|
2024-05-07 18:02:59 -04:00
|
|
|
"org.gnome.TextEditor"
|
|
|
|
"org.gtk.Gtk3theme.Adwaita-dark"
|
|
|
|
];
|
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
environment = {
|
|
|
|
# Remove default Gnome packages that came with the install, then install the ones I actually use
|
|
|
|
gnome.excludePackages =
|
|
|
|
(with pkgs; [
|
|
|
|
gnome-photos
|
|
|
|
gnome-tour
|
|
|
|
gnomeExtensions.extension-list
|
|
|
|
gedit # text editor
|
|
|
|
])
|
2024-07-26 09:52:37 -04:00
|
|
|
++ (with pkgs.gnome; [
|
|
|
|
gnome-music
|
2024-05-07 18:02:59 -04:00
|
|
|
gnome-calendar
|
|
|
|
epiphany # web browser
|
|
|
|
geary # email reader
|
|
|
|
evince # document viewer
|
2024-07-26 09:52:37 -04:00
|
|
|
gnome-characters
|
|
|
|
gnome-software
|
2024-05-07 18:02:59 -04:00
|
|
|
totem # video player
|
2024-07-26 09:52:37 -04:00
|
|
|
tali # poker game
|
|
|
|
iagno # go game
|
|
|
|
hitori # sudoku game
|
|
|
|
atomix # puzzle game
|
2024-05-07 18:02:59 -04:00
|
|
|
]);
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-06-08 01:29:05 -04:00
|
|
|
# Install additional packages
|
2024-05-07 18:02:59 -04:00
|
|
|
systemPackages = with pkgs; [
|
|
|
|
# Gnome tweak tools
|
2024-07-26 09:52:37 -04:00
|
|
|
gnome.gnome-tweaks
|
2024-05-07 18:02:59 -04:00
|
|
|
# Gnome extensions
|
2024-05-11 20:29:29 -04:00
|
|
|
gnomeExtensions.alphabetical-app-grid
|
|
|
|
gnomeExtensions.appindicator
|
|
|
|
gnomeExtensions.dash-to-panel
|
|
|
|
gnomeExtensions.forge
|
2024-07-28 12:43:34 -04:00
|
|
|
# FIXME: These two extensions are incompatible with the repo's gnome version
|
|
|
|
#gnomeExtensions.another-window-session-manager
|
|
|
|
#gnomeExtensions.random-wallpaper
|
2024-05-07 18:02:59 -04:00
|
|
|
# Themeing
|
2024-07-26 09:52:37 -04:00
|
|
|
gnome.gnome-themes-extra
|
2024-05-07 18:02:59 -04:00
|
|
|
papirus-icon-theme
|
|
|
|
qogir-icon-theme
|
|
|
|
];
|
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Gnome UI integration for KDE apps
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
|
|
|
platformTheme = "gnome";
|
|
|
|
style = "adwaita-dark";
|
|
|
|
};
|
2024-06-26 13:19:06 -04:00
|
|
|
|
|
|
|
nixpkgs.overlays = lib.mkIf cfg.tripleBuffering.enable [
|
|
|
|
# GNOME 46: triple-buffering-v4-46
|
2024-07-13 13:34:59 -04:00
|
|
|
# For details, see https://wiki.nixos.org/wiki/GNOME#Dynamic_triple_buffering
|
2024-06-26 13:19:06 -04:00
|
|
|
(final: prev: {
|
|
|
|
gnome = prev.gnome.overrideScope (
|
|
|
|
gnomeFinal: gnomePrev: {
|
|
|
|
mutter = gnomePrev.mutter.overrideAttrs (old: {
|
|
|
|
src = pkgs.fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "vanvugt";
|
|
|
|
repo = "mutter";
|
|
|
|
rev = "triple-buffering-v4-46";
|
2024-07-08 12:52:07 -04:00
|
|
|
hash = "sha256-nz1Enw1NjxLEF3JUG0qknJgf4328W/VvdMjJmoOEMYs=";
|
2024-06-26 13:19:06 -04:00
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|
|
|
|
);
|
|
|
|
})
|
|
|
|
];
|
2024-05-07 18:02:59 -04:00
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
}
|