Skip to content

Commit

Permalink
nixos/gnome3: add favoriteAppsOverride option
Browse files Browse the repository at this point in the history
Rather messy and only needed for the installation cd, so it's
an internal option.
  • Loading branch information
worldofpeace committed Oct 24, 2020
1 parent d89dedd commit 9cee777
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions nixos/modules/services/x11/desktop-managers/gnome3.nix
Expand Up @@ -17,6 +17,11 @@ let
'';
};

defaultFavoriteAppsOverride = ''
[org.gnome.shell]
favorite-apps=[ 'org.gnome.Geary.desktop', 'org.gnome.Music.desktop', 'org.gnome.Photos.desktop', 'org.gnome.Nautilus.desktop' ]
'';

nixos-gsettings-desktop-schemas = let
defaultPackages = with pkgs; [ gsettings-desktop-schemas gnome3.gnome-shell ];
in
Expand All @@ -42,8 +47,7 @@ let
[org.gnome.desktop.screensaver]
picture-uri='file://${pkgs.nixos-artwork.wallpapers.simple-dark-gray-bottom.gnomeFilePath}'
[org.gnome.shell]
favorite-apps=[ 'org.gnome.Geary.desktop', 'org.gnome.Music.desktop', 'org.gnome.Photos.desktop', 'org.gnome.Nautilus.desktop' ]
${cfg.favoriteAppsOverride}
${cfg.extraGSettingsOverrides}
EOF
Expand Down Expand Up @@ -123,6 +127,17 @@ in
apply = list: list ++ [ pkgs.gnome3.gnome-shell pkgs.gnome3.gnome-shell-extensions ];
};

favoriteAppsOverride = mkOption {
internal = true; # this is messy
default = defaultFavoriteAppsOverride;
type = types.lines;
example = literalExample ''
[org.gnome.shell]
favorite-apps=[ 'firefox.desktop', 'org.gnome.Calendar.desktop' ]
'';
description = "List of desktop files to put as favorite apps into gnome-shell. These need to be installed somehow globally.";
};

extraGSettingsOverrides = mkOption {
default = "";
type = types.lines;
Expand Down

0 comments on commit 9cee777

Please sign in to comment.