2024-11-08 22:35:37 +01:00
|
|
|
{ pkgs, ... }:
|
2023-04-26 00:11:34 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
nixpkgs.overlays = [ (import ./overlay.nix) ];
|
|
|
|
|
|
|
|
services.xserver.enable = true;
|
|
|
|
services.xserver.videoDrivers = [ "modesetting" ];
|
|
|
|
services.xserver.displayManager.gdm.enable = true;
|
|
|
|
services.xserver.desktopManager.gnome = {
|
|
|
|
enable = true;
|
|
|
|
# One app per workspace
|
|
|
|
extraGSettingsOverrides = ''
|
|
|
|
[org.gnome.mutter]
|
|
|
|
dynamic-workspaces=true
|
|
|
|
'';
|
2024-11-08 22:35:37 +01:00
|
|
|
extraGSettingsOverridePackages = [ pkgs.mutter ];
|
2023-04-26 00:11:34 +02:00
|
|
|
};
|
|
|
|
|
2023-11-28 05:40:45 +01:00
|
|
|
services.logind.powerKey = "ignore";
|
|
|
|
services.logind.powerKeyLongPress = "poweroff";
|
2023-04-26 00:11:34 +02:00
|
|
|
|
|
|
|
# Installed by default but not mobile friendly yet
|
2024-11-08 22:35:37 +01:00
|
|
|
environment.gnome.excludePackages = with pkgs; [
|
2023-04-26 00:11:34 +02:00
|
|
|
totem # Videos
|
|
|
|
simple-scan # Document Scanner
|
|
|
|
gnome-system-monitor
|
|
|
|
yelp # Help
|
|
|
|
gnome-music
|
|
|
|
baobab # Disk Usage Analyser
|
|
|
|
evince # Document Viewer
|
2024-07-17 21:45:20 +02:00
|
|
|
gnome-connections
|
|
|
|
gnome-tour
|
2023-04-26 00:11:34 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
# Input method works, but these envvars must not be set, or the on-screen keyboard won't pop up.
|
2024-11-08 22:35:37 +01:00
|
|
|
# GNOME has a builtin IBus support through IBus' D-Bus API, so these variables are not neccessary.
|
|
|
|
environment.extraInit = ''
|
|
|
|
unset GTK_IM_MODULE QT_IM_MODULE XMODIFIERS
|
|
|
|
'';
|
2023-04-26 00:11:34 +02:00
|
|
|
}
|