feat: adds gnome role

This commit is contained in:
Ahwx 2026-06-12 20:42:14 +02:00
parent a6294d0595
commit e0227b03c8

31
roles/gnome.nix Normal file
View file

@ -0,0 +1,31 @@
{
lib,
pkgs,
config,
username,
home-manager,
...
}:
with lib;
let
cfg = config.liv.gnome;
in
{
options.liv.gnome = {
enable = mkEnableOption "Enable GNOME workflow";
};
config = mkIf cfg.enable {
security.pam.services.gdm.enableGnomeKeyring = true;
services.displayManager.gdm.enable = true;
services.desktopManager.gnome.enable = true;
services.gnome.core-apps.enable = false;
services.gnome.core-developer-tools.enable = false;
services.gnome.games.enable = false;
environment.gnome.excludePackages = with pkgs; [
gnome-tour
gnome-user-docs
];
};
}