nixfiles/profiles/nixos/gui/environments/gnome.nix

77 lines
1.4 KiB
Nix
Raw Normal View History

{
pkgs,
lib,
...
}: let
inherit (lib.modules) mkIf mkForce;
isWayland = true;
in {
2022-02-14 14:56:05 +00:00
services.xserver = {
enable = true;
desktopManager.gnome.enable = true;
displayManager.gdm = {
enable = true;
wayland = isWayland;
autoSuspend = false;
};
2022-02-14 14:56:05 +00:00
};
environment.variables = {
QT_QPA_PLATFORM =
if isWayland
then "wayland-egl"
else "xcb";
SDL_VIDEODRIVER =
if isWayland
then "wayland,x11,windows"
else "x11,windows";
_JAVA_AWT_WM_NONREPARENTING = mkIf isWayland "1";
};
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-music
2024-07-18 18:30:10 +01:00
gnome-terminal
gedit
epiphany
evince
gnome-characters
2024-07-18 18:30:10 +01:00
totem
tali
iagno
hitori
atomix
2024-07-18 18:30:10 +01:00
gnome-tour
2024-07-22 20:06:07 +01:00
geary
2022-02-14 14:56:05 +00:00
];
2022-02-14 15:16:35 +00:00
environment.systemPackages = with pkgs; [
2024-07-18 18:30:10 +01:00
gnome-tweaks
gnomeExtensions.appindicator
2022-02-14 15:16:35 +00:00
gnomeExtensions.just-perfection
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;
services.udev.packages = with pkgs; [gnome3.gnome-settings-daemon];
2022-02-14 15:16:35 +00:00
services.power-profiles-daemon.enable = true;
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
}