dotfiles/modules/programs/gnome.nix

38 lines
714 B
Nix
Raw Normal View History

2022-08-20 14:16:13 +02:00
{ config
, lib
, pkgs
, ...
}:
with lib;
let
cfg = config.my.programs.gnome;
in
{
2022-10-15 20:00:09 +02:00
options.my.programs.gnome.enable = mkEnableOption "gnome";
2022-08-20 14:16:13 +02:00
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
};
}