11{ config , lib , pkgs , modulesPath , ... } :
2- with builtins ; with lib ; {
2+ with builtins ; with lib ;
3+ let
4+ extensions = with pkgs . gnomeExtensions ; [
5+ appindicator
6+ arcmenu
7+ bluetooth-quick-connect
8+ caffeine
9+ dash-to-panel
10+ gsconnect
11+ hibernate-status-button
12+ user-themes
13+ ] ;
14+ in
15+ {
316 options . nzbr . desktop . gnome = with types ; {
417 enable = mkEnableOption "GNOME Desktop Environment" ;
518 } ;
@@ -28,16 +41,7 @@ with builtins; with lib; {
2841 seahorse
2942
3043 local . gnome-shell-extension-pop-shell
31- ] ++ (
32- let
33- extensions =
34- pkgs . gnome41Extensions
35- // { "arcmenu@arcmenu.com" = pkgs . unstable . gnomeExtensions . arcmenu ; } ; # other arcmenu package is broken for some reason
36- in
37- map
38- ( ext : extensions . ${ ext } )
39- config . nzbr . home . config . dconf . settings . "org/gnome/shell" . enabled-extensions
40- ) ;
44+ ] ++ extensions ;
4145
4246 programs . dconf . enable = true ;
4347 services . dbus . packages = with pkgs ; [ dconf ] ;
@@ -110,26 +114,7 @@ with builtins; with lib; {
110114 } ;
111115 "org/gnome/shell" = {
112116 disable-user-extensions = false ;
113- enabled-extensions = [
114- "appindicatorsupport@rgcjonas.gmail.com"
115- "arcmenu@arcmenu.com"
116- # "audio-switcher@albertomosconi"
117- "bluetooth-quick-connect@bjarosze.gmail.com"
118- "caffeine@patapon.info"
119- "dash-to-panel@jderose9.github.com"
120- "drive-menu@gnome-shell-extensions.gcampax.github.com"
121- "expandable-notifications@kaan.g.inam.org"
122- "gsconnect@andyholmes.github.io"
123- # "hibernate@dafne.rocks"
124- "hibernate-status@dromi" # Placeholder for the above extension
125- "notification-position@drugo.dev"
126- # "remmina-search-provider@alexmurray.github.com"
127- "spotify-artwork-fixer@wjt.me.uk"
128- # "tweaks-system-menu@extensions.gnome-shell.fifi.org"
129- "user-theme@gnome-shell-extensions.gcampax.github.com"
130- # "blur-my-shell@aunetx"
131- # "trayIconsReloaded@selfmade.pl"
132- ] ;
117+ enabled-extensions = map ( ext : ext . extensionUuid ) extensions ;
133118 favorite-apps = [
134119 "firefox.desktop"
135120 "org.gnome.Nautilus.desktop"
@@ -138,8 +123,6 @@ with builtins; with lib; {
138123 "idea-ultimate.desktop"
139124 "gitkraken.desktop"
140125 "timeular.desktop"
141- # "discord.desktop"
142- # "spotify.desktop"
143126 ] ;
144127 welcome-dialog-last-shown-version = pkgs . gnome-shell . version ;
145128 } ;
0 commit comments