2024-05-07 18:02:59 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-02-29 09:53:34 -05:00
|
|
|
|
|
|
|
# UI and desktop-related options
|
|
|
|
let
|
2024-05-07 18:02:59 -04:00
|
|
|
cfg = config.host.ui.gnome;
|
2024-02-29 09:53:34 -05:00
|
|
|
in
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
options = {
|
|
|
|
host.ui.gnome.enable = mkEnableOption (mdDoc "Enables Gnome");
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
host.ui = {
|
|
|
|
audio.enable = true;
|
|
|
|
flatpak.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
# Configure the xserver
|
|
|
|
xserver = {
|
|
|
|
# Enable the X11 windowing system.
|
|
|
|
enable = true;
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Configure keymap in X11
|
|
|
|
xkb = {
|
|
|
|
layout = "us";
|
|
|
|
variant = "";
|
|
|
|
};
|
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-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Remove default packages that came with the install
|
2024-05-21 09:22:03 -04:00
|
|
|
excludePackages = [ pkgs.xterm ];
|
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 = [
|
|
|
|
"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.gnome.World.Secrets"
|
|
|
|
"org.gtk.Gtk3theme.Adwaita-dark"
|
|
|
|
];
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-21 09:22:03 -04:00
|
|
|
printing.enable = true;
|
2024-05-07 18:02:59 -04:00
|
|
|
};
|
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
|
|
|
|
])
|
|
|
|
++ (with pkgs.gnome; [
|
|
|
|
cheese # webcam tool
|
|
|
|
gnome-music
|
|
|
|
gnome-calendar
|
|
|
|
epiphany # web browser
|
|
|
|
geary # email reader
|
|
|
|
evince # document viewer
|
|
|
|
gnome-characters
|
|
|
|
gnome-software
|
|
|
|
totem # video player
|
|
|
|
tali # poker game
|
|
|
|
iagno # go game
|
|
|
|
hitori # sudoku game
|
|
|
|
atomix # puzzle game
|
|
|
|
]);
|
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
|
|
|
|
gnome.gnome-tweaks
|
|
|
|
# Gnome extensions
|
2024-05-11 20:29:29 -04:00
|
|
|
gnomeExtensions.alphabetical-app-grid
|
|
|
|
gnomeExtensions.another-window-session-manager
|
|
|
|
gnomeExtensions.appindicator
|
|
|
|
gnomeExtensions.dash-to-panel
|
|
|
|
gnomeExtensions.forge
|
2024-05-07 18:02:59 -04:00
|
|
|
# Themeing
|
|
|
|
gnome.gnome-themes-extra
|
|
|
|
papirus-icon-theme
|
|
|
|
qogir-icon-theme
|
|
|
|
];
|
2024-06-08 01:29:05 -04:00
|
|
|
|
|
|
|
# Install GStreamer plugins
|
|
|
|
# References:
|
|
|
|
# https://wiki.nixos.org/wiki/GStreamer
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/195936
|
|
|
|
sessionVariables.GST_PLUGIN_SYSTEM_PATH_1_0 = lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" (
|
|
|
|
with pkgs.gst_all_1;
|
|
|
|
[
|
|
|
|
gstreamer
|
|
|
|
gst-plugins-base
|
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-ugly
|
|
|
|
gst-libav
|
|
|
|
gst-vaapi
|
|
|
|
]
|
|
|
|
);
|
2024-05-07 18:02:59 -04:00
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Manage fonts
|
|
|
|
fonts = {
|
|
|
|
# Install extra fonts
|
|
|
|
packages = with pkgs; [
|
|
|
|
noto-fonts
|
|
|
|
noto-fonts-cjk
|
|
|
|
noto-fonts-emoji
|
|
|
|
liberation_ttf
|
|
|
|
fira-code
|
|
|
|
fira-code-symbols
|
|
|
|
fira
|
|
|
|
roboto-slab
|
|
|
|
];
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Enable font dir for use with Flatpak. See https://nixos.wiki/wiki/Fonts#Flatpak_applications_can.27t_find_system_fonts
|
|
|
|
fontDir.enable = true;
|
|
|
|
};
|
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-03 13:56:06 -04:00
|
|
|
|
|
|
|
# Support for AppImage files
|
|
|
|
programs.appimage = {
|
|
|
|
enable = true;
|
|
|
|
binfmt = true;
|
|
|
|
};
|
2024-05-07 18:02:59 -04:00
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
}
|