2024-06-24 15:38:28 +00:00
|
|
|
# Enables the Gnome desktop environment.
|
2024-05-07 22:02:59 +00:00
|
|
|
{
|
2024-09-19 17:40:37 +00:00
|
|
|
inputs,
|
2024-05-07 22:02:59 +00:00
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
2024-12-06 16:46:10 +00:00
|
|
|
namespace,
|
2024-05-07 22:02:59 +00:00
|
|
|
...
|
|
|
|
}:
|
2024-02-29 14:53:34 +00:00
|
|
|
|
|
|
|
let
|
2024-12-06 16:46:10 +00:00
|
|
|
cfg = config.${namespace}.ui.desktops.gnome;
|
2024-02-29 14:53:34 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
|
2024-05-07 22:02:59 +00:00
|
|
|
options = {
|
2024-12-06 16:46:10 +00:00
|
|
|
${namespace}.ui.desktops.gnome = {
|
2024-09-08 15:58:56 +00:00
|
|
|
enable = lib.mkEnableOption "Enables the Gnome Desktop Environment.";
|
2024-06-26 17:19:06 +00:00
|
|
|
};
|
2024-05-07 22:02:59 +00:00
|
|
|
};
|
|
|
|
|
2024-06-24 15:38:28 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2024-12-06 16:46:10 +00:00
|
|
|
${namespace}.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
|
2024-09-24 17:07:59 +00:00
|
|
|
desktopManager.gnome = {
|
|
|
|
enable = true;
|
2024-11-23 18:37:17 +00:00
|
|
|
# Enable native app scaling and VRR, and disable version checks for gnome extensions
|
2024-11-18 16:10:20 +00:00
|
|
|
extraGSettingsOverrides = ''
|
2024-09-24 19:48:50 +00:00
|
|
|
[org.gnome.mutter]
|
2024-11-19 19:28:27 +00:00
|
|
|
experimental-features = [ 'scale-monitor-framebuffer', 'variable-refresh-rate' ]
|
2024-11-23 18:37:17 +00:00
|
|
|
[org.gnome.shell]
|
|
|
|
disable-extension-version-validation = true
|
2024-09-24 17:07:59 +00:00
|
|
|
'';
|
2024-11-23 18:37:17 +00:00
|
|
|
extraGSettingsOverridePackages = with pkgs; [
|
|
|
|
mutter
|
|
|
|
gnome-shell
|
|
|
|
];
|
2024-09-24 17:07:59 +00:00
|
|
|
};
|
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 = [
|
2024-07-24 21:50:51 +00:00
|
|
|
"com.github.finefindus.eyedropper"
|
2024-05-07 22:02:59 +00: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 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
|
2024-11-18 16:10:20 +00:00
|
|
|
gnome.excludePackages = (
|
|
|
|
with pkgs;
|
|
|
|
[
|
2024-05-07 22:02:59 +00:00
|
|
|
gnome-photos
|
|
|
|
gnome-tour
|
|
|
|
gnomeExtensions.extension-list
|
|
|
|
gedit # text editor
|
2024-07-26 13:52:37 +00:00
|
|
|
gnome-music
|
2024-05-07 22:02:59 +00:00
|
|
|
gnome-calendar
|
|
|
|
epiphany # web browser
|
|
|
|
geary # email reader
|
|
|
|
evince # document viewer
|
2024-07-26 13:52:37 +00:00
|
|
|
gnome-characters
|
|
|
|
gnome-software
|
2024-05-07 22:02:59 +00:00
|
|
|
totem # video player
|
2024-07-26 13:52:37 +00:00
|
|
|
tali # poker game
|
|
|
|
iagno # go game
|
|
|
|
hitori # sudoku game
|
|
|
|
atomix # puzzle game
|
2024-11-18 16:10:20 +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-11-18 16:10:20 +00:00
|
|
|
gnome-tweaks
|
2024-05-07 22:02:59 +00:00
|
|
|
# Themeing
|
2024-11-18 16:10:20 +00:00
|
|
|
gnome-themes-extra
|
2024-05-07 22:02:59 +00:00
|
|
|
papirus-icon-theme
|
|
|
|
qogir-icon-theme
|
2024-11-23 18:37:17 +00:00
|
|
|
# Gnome extensions
|
|
|
|
gnomeExtensions.another-window-session-manager
|
|
|
|
gnomeExtensions.appindicator
|
|
|
|
gnomeExtensions.dash-to-panel
|
|
|
|
gnomeExtensions.random-wallpaper
|
2024-05-07 22:02:59 +00:00
|
|
|
];
|
|
|
|
};
|
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-11-29 16:30:09 +00:00
|
|
|
|
|
|
|
# Make sure the keyring is properly unlocked at startup.
|
|
|
|
# See https://discourse.nixos.org/t/login-keyring-did-not-get-unlocked-hyprland/40869/8
|
|
|
|
security.pam.services.gdm.enableGnomeKeyring = true;
|
2024-05-07 22:02:59 +00:00
|
|
|
};
|
2024-02-29 14:53:34 +00:00
|
|
|
}
|