2023-07-30 17:45:00 +04:00
|
|
|
{ outputs, options, config, lib, pkgs, ...}:
|
|
|
|
let
|
|
|
|
cfg = config.modules.desktop.gnome;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.modules.desktop.gnome = {
|
2024-08-01 16:24:09 +04:00
|
|
|
enable = lib.mkEnableOption false;
|
2023-07-30 17:45:00 +04:00
|
|
|
};
|
|
|
|
|
2024-08-01 16:24:09 +04:00
|
|
|
config = lib.mkIf cfg.enable {
|
2023-07-30 17:45:00 +04:00
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
|
|
|
displayManager = {
|
|
|
|
gdm = {
|
|
|
|
enable = true;
|
|
|
|
# not taking any chances
|
|
|
|
wayland = false;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
desktopManager = {
|
|
|
|
gnome = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
# gnome extensions
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
gnomeExtensions.appindicator
|
|
|
|
];
|
|
|
|
# gnome udev settings
|
|
|
|
services.udev.packages = with pkgs; [
|
|
|
|
gnome.gnome-settings-daemon
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|