2022-08-20 14:16:13 +02:00
|
|
|
{ config
|
|
|
|
, lib
|
|
|
|
, pkgs
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.my.programs.gnome;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.my.programs.gnome = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
type = types.bool;
|
|
|
|
example = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
hardware = {
|
|
|
|
opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport = true;
|
|
|
|
};
|
|
|
|
pulseaudio.enable = false;
|
|
|
|
};
|
|
|
|
programs.xwayland.enable = true;
|
|
|
|
services.xserver = {
|
|
|
|
layout = "de";
|
|
|
|
displayManager = {
|
|
|
|
autoLogin = {
|
|
|
|
enable = true;
|
|
|
|
user = "moritz";
|
|
|
|
};
|
|
|
|
gdm.enable = true;
|
|
|
|
};
|
|
|
|
enable = true;
|
|
|
|
desktopManager.gnome.enable = true;
|
|
|
|
};
|
2022-08-31 12:03:03 +02:00
|
|
|
environment.systemPackages = with pkgs.gnomeExtensions; [ tray-icons-reloaded gsconnect ];
|
2022-08-20 14:16:13 +02:00
|
|
|
};
|
|
|
|
}
|