dotfiles/modules/programs/gnome.nix

43 lines
791 B
Nix

{ 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;
};
environment.systemPackages = with pkgs.gnomeExtensions; [ tray-icons-reloaded gsconnect ];
};
}