nixos-configuration/modules/desktop/gnome.nix

64 lines
1.3 KiB
Nix
Raw Normal View History

2023-09-09 13:36:21 +02:00
{
config,
pkgs,
lib,
...
2023-09-09 14:57:55 +02:00
}: let
2023-09-09 13:36:21 +02:00
cfg = config.my.gnome;
#applyGnomeUserSettings = {
# home.packages = with pkgs; [
# gnome.gpaste
# amberol
# ];
# dconf.settings = {
# "org/gnome/desktop/peripherals/keyboard" = {
# numlock-state = true;
# };
# };
#};
2023-09-09 13:36:21 +02:00
in {
options.my.gnome = {
enable = lib.mkEnableOption "gnome desktop";
};
config = lib.mkIf cfg.enable {
2023-09-09 15:44:15 +02:00
my.desktop.enable = true;
2023-09-09 13:36:21 +02:00
services = {
xserver = {
# Enable the GNOME Desktop Environment.
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
};
gnome = {
tracker-miners.enable = false;
tracker.enable = false;
};
};
environment.systemPackages = [pkgs.gnomeExtensions.gsconnect];
# remove some gnome default apps
environment.gnome.excludePackages = with pkgs.gnome; [
cheese # photo booth
epiphany # web browser
evince # document viewer
geary # email client
seahorse # password manager
gnome-clocks
gnome-maps
gnome-weather
gnome-music
pkgs.gnome-connections
];
home-manager.users = {
# vinzenz = lib.mkIf config.my.home.vinzenz.enable applyGnomeUserSettings;
# ronja = lib.mkIf config.my.home.ronja.enable applyGnomeUserSettings;
2023-09-09 13:36:21 +02:00
};
};
}