2022-12-04 13:45:43 +00:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
2023-08-29 14:07:17 +01:00
|
|
|
}: let
|
2023-09-01 01:46:14 +01:00
|
|
|
inherit (lib.modules) mkIf mkForce;
|
|
|
|
|
2023-08-29 14:07:17 +01:00
|
|
|
isWayland = true;
|
|
|
|
in {
|
2022-02-14 14:56:05 +00:00
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
desktopManager.gnome.enable = true;
|
2023-08-29 14:07:17 +01:00
|
|
|
displayManager.gdm = {
|
|
|
|
enable = true;
|
|
|
|
wayland = isWayland;
|
|
|
|
autoSuspend = false;
|
|
|
|
};
|
2022-02-14 14:56:05 +00:00
|
|
|
};
|
2023-08-29 14:07:17 +01:00
|
|
|
|
|
|
|
environment.variables = {
|
|
|
|
QT_QPA_PLATFORM =
|
|
|
|
if isWayland
|
|
|
|
then "wayland-egl"
|
|
|
|
else "xcb";
|
|
|
|
SDL_VIDEODRIVER =
|
|
|
|
if isWayland
|
|
|
|
then "wayland"
|
|
|
|
else "x11";
|
2023-09-01 01:46:14 +01:00
|
|
|
_JAVA_AWT_WM_NONREPARENTING = mkIf isWayland "1";
|
2023-08-29 14:07:17 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
security.polkit.extraConfig = ''
|
|
|
|
polkit.addRule(function(action, subject) {
|
|
|
|
if (subject.isInGroup("wheel")) {
|
|
|
|
return polkit.Result.YES;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
'';
|
|
|
|
|
2024-07-18 18:30:10 +01:00
|
|
|
environment.gnome.excludePackages = with pkgs; [
|
|
|
|
cheese
|
|
|
|
gnome.gnome-music
|
|
|
|
gnome-terminal
|
|
|
|
gedit
|
|
|
|
epiphany
|
|
|
|
evince
|
|
|
|
gnome.gnome-characters
|
|
|
|
totem
|
|
|
|
gnome.tali
|
|
|
|
gnome.iagno
|
|
|
|
gnome.hitori
|
|
|
|
gnome.atomix
|
|
|
|
gnome-tour
|
|
|
|
gnome.geary
|
2022-02-14 14:56:05 +00:00
|
|
|
];
|
2023-08-29 14:07:17 +01:00
|
|
|
|
2022-02-14 15:16:35 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
2024-07-18 18:30:10 +01:00
|
|
|
gnome-tweaks
|
2023-08-29 14:07:17 +01:00
|
|
|
gnomeExtensions.appindicator
|
2022-02-14 15:16:35 +00:00
|
|
|
gnomeExtensions.just-perfection
|
2023-08-29 14:07:17 +01:00
|
|
|
|
|
|
|
qt5.qtwayland
|
|
|
|
wl-clipboard
|
|
|
|
xclip
|
2022-02-15 11:04:08 +00:00
|
|
|
];
|
2022-11-11 16:32:26 +00:00
|
|
|
|
|
|
|
services.gnome.gnome-browser-connector.enable = true;
|
2022-12-04 13:45:43 +00:00
|
|
|
services.udev.packages = with pkgs; [gnome3.gnome-settings-daemon];
|
2022-02-14 15:16:35 +00:00
|
|
|
|
2023-08-29 14:07:17 +01:00
|
|
|
services.power-profiles-daemon.enable = true;
|
2023-09-01 01:46:14 +01:00
|
|
|
hardware.pulseaudio.enable = mkForce false;
|
2022-02-14 15:16:35 +00:00
|
|
|
|
2022-02-14 14:56:05 +00:00
|
|
|
programs.dconf.enable = true;
|
2022-02-14 15:16:35 +00:00
|
|
|
|
2023-09-28 19:47:00 +01:00
|
|
|
services.gnome.gnome-keyring.enable = mkForce false;
|
2022-02-14 14:56:05 +00:00
|
|
|
}
|