nixos-configs/nixos/gnome.nix

58 lines
1.2 KiB
Nix
Raw Normal View History

2024-10-27 11:23:20 +00:00
{
pkgs,
config,
lib,
...
}: let
cfg = config.pim.gnome;
in {
options.pim.gnome.enable = lib.mkEnableOption "gnome";
2024-10-26 18:24:13 +00:00
2024-10-27 11:23:20 +00:00
config = lib.mkIf cfg.enable {
2024-11-07 19:47:40 +00:00
services = {
gnome.gnome-keyring.enable = lib.mkForce false;
xserver = {
desktopManager.gnome.enable = true;
displayManager.gdm.enable = true;
};
};
2024-10-26 18:24:13 +00:00
2024-10-27 11:23:20 +00:00
environment = {
systemPackages =
[
pkgs.gnome.gnome-shell-extensions
]
++ (with pkgs.gnomeExtensions; [
pop-shell
window-is-ready-remover
random-wallpaper
workspaces-indicator-by-open-apps
2024-11-10 11:16:05 +00:00
])
++ lib.optional config.services.tailscale.enable pkgs.gnomeExtensions.tailscale-status;
2024-10-27 11:23:20 +00:00
gnome.excludePackages =
(with pkgs; [
epiphany
gnome-connections
gnome-console
gnome-tour
])
++ (with pkgs.gnome; [
geary
gnome-calendar
gnome-clocks
gnome-contacts
gnome-font-viewer
gnome-logs
gnome-maps
gnome-music
seahorse
totem
yelp
gnome-weather
]);
};
2024-10-26 18:24:13 +00:00
};
}