2024-06-24 15:38:28 +00:00
|
|
|
# Enables the Gnome desktop environment.
|
2024-05-07 22:02:59 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-02-29 14:53:34 +00:00
|
|
|
|
|
|
|
let
|
2024-06-24 15:38:28 +00:00
|
|
|
cfg = config.aux.system.ui.desktops.gnome;
|
2024-02-29 14:53:34 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
|
2024-05-07 22:02:59 +00:00
|
|
|
options = {
|
2024-06-26 17:19:06 +00: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 22:02:59 +00:00
|
|
|
};
|
|
|
|
|
2024-06-24 15:38:28 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
aux.system.ui.desktops.enable = true;
|
2024-05-07 22:02:59 +00:00
|
|
|
|
2024-06-24 15:38:28 +00:00
|
|
|
# Enable Gnome
|
2024-05-07 22:02:59 +00:00
|
|
|
services = {
|
|
|
|
xserver = {
|
2024-06-24 15:38:28 +00:00
|
|
|
# Remove default packages that came with the install
|
|
|
|
excludePackages = [ pkgs.xterm ];
|
2024-02-29 14:53:34 +00:00
|
|
|
|
2024-05-07 22:02:59 +00:00
|
|
|
# Enable Gnome
|
|
|
|
desktopManager.gnome.enable = true;
|
2024-05-21 13:22:03 +00:00
|
|
|
displayManager.gdm.enable = true;
|
2024-05-07 22:02:59 +00:00
|
|
|
};
|
2024-03-21 20:17:06 +00:00
|
|
|
|
2024-05-07 22:02:59 +00:00
|
|
|
# Install Flatpaks
|
|
|
|
flatpak.packages = [
|
|
|
|
"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 16:23:12 +00:00
|
|
|
"org.gnome.Shotwell"
|
2024-05-07 22:02:59 +00:00
|
|
|
"org.gnome.TextEditor"
|
|
|
|
"org.gtk.Gtk3theme.Adwaita-dark"
|
|
|
|
];
|
|
|
|
};
|
2024-02-29 14:53:34 +00:00
|
|
|
|
2024-05-07 22:02:59 +00: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-05 13:50:55 +00:00
|
|
|
++ (with pkgs; [
|
2024-05-07 22:02:59 +00:00
|
|
|
cheese # webcam tool
|
2024-07-05 13:50:55 +00:00
|
|
|
gnome.gnome-music
|
2024-05-07 22:02:59 +00:00
|
|
|
gnome-calendar
|
|
|
|
epiphany # web browser
|
|
|
|
geary # email reader
|
|
|
|
evince # document viewer
|
2024-07-05 13:50:55 +00:00
|
|
|
gnome.gnome-characters
|
|
|
|
gnome.gnome-software
|
2024-05-07 22:02:59 +00:00
|
|
|
totem # video player
|
2024-07-05 13:50:55 +00:00
|
|
|
gnome.tali # poker game
|
|
|
|
gnome.iagno # go game
|
|
|
|
gnome.hitori # sudoku game
|
|
|
|
gnome.atomix # puzzle game
|
2024-05-07 22:02:59 +00:00
|
|
|
]);
|
2024-02-29 14:53:34 +00:00
|
|
|
|
2024-06-08 05:29:05 +00:00
|
|
|
# Install additional packages
|
2024-05-07 22:02:59 +00:00
|
|
|
systemPackages = with pkgs; [
|
|
|
|
# Gnome tweak tools
|
2024-07-05 13:50:55 +00:00
|
|
|
gnome-tweaks
|
2024-05-07 22:02:59 +00:00
|
|
|
# Gnome extensions
|
2024-05-12 00:29:29 +00:00
|
|
|
gnomeExtensions.alphabetical-app-grid
|
|
|
|
gnomeExtensions.another-window-session-manager
|
|
|
|
gnomeExtensions.appindicator
|
|
|
|
gnomeExtensions.dash-to-panel
|
|
|
|
gnomeExtensions.forge
|
2024-07-04 18:57:52 +00:00
|
|
|
gnomeExtensions.random-wallpaper
|
2024-05-07 22:02:59 +00:00
|
|
|
# Themeing
|
2024-07-05 13:50:55 +00:00
|
|
|
gnome-themes-extra
|
2024-05-07 22:02:59 +00:00
|
|
|
papirus-icon-theme
|
|
|
|
qogir-icon-theme
|
|
|
|
];
|
|
|
|
};
|
2024-02-29 14:53:34 +00:00
|
|
|
|
2024-05-07 22:02:59 +00:00
|
|
|
# Gnome UI integration for KDE apps
|
|
|
|
qt = {
|
|
|
|
enable = true;
|
|
|
|
platformTheme = "gnome";
|
|
|
|
style = "adwaita-dark";
|
|
|
|
};
|
2024-06-26 17:19:06 +00:00
|
|
|
|
|
|
|
nixpkgs.overlays = lib.mkIf cfg.tripleBuffering.enable [
|
|
|
|
# GNOME 46: triple-buffering-v4-46
|
2024-07-13 17:34:59 +00:00
|
|
|
# For details, see https://wiki.nixos.org/wiki/GNOME#Dynamic_triple_buffering
|
2024-06-26 17:19:06 +00: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 16:52:07 +00:00
|
|
|
hash = "sha256-nz1Enw1NjxLEF3JUG0qknJgf4328W/VvdMjJmoOEMYs=";
|
2024-06-26 17:19:06 +00:00
|
|
|
};
|
|
|
|
});
|
|
|
|
}
|
|
|
|
);
|
|
|
|
})
|
|
|
|
];
|
2024-05-07 22:02:59 +00:00
|
|
|
};
|
2024-02-29 14:53:34 +00:00
|
|
|
}
|