dotfiles/modules/programs/gnome.nix
2022-08-20 14:16:13 +02:00

43 lines
781 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; [ pop-shell gsconnect ];
};
}