nixos/pantheon: add an apps.enable option
This commit is contained in:
parent
ee75a460af
commit
4fb91d10c8
@ -26,6 +26,8 @@ in
|
|||||||
enable = mkEnableOption "contractor, a desktop-wide extension service used by Pantheon";
|
enable = mkEnableOption "contractor, a desktop-wide extension service used by Pantheon";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
apps.enable = mkEnableOption "Pantheon default applications";
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.xserver.desktopManager.pantheon = {
|
services.xserver.desktopManager.pantheon = {
|
||||||
@ -121,6 +123,7 @@ in
|
|||||||
switchboard-plug-power
|
switchboard-plug-power
|
||||||
elementary-default-settings
|
elementary-default-settings
|
||||||
];
|
];
|
||||||
|
services.pantheon.apps.enable = mkDefault true;
|
||||||
services.pantheon.contractor.enable = mkDefault true;
|
services.pantheon.contractor.enable = mkDefault true;
|
||||||
services.gnome3.at-spi2-core.enable = true;
|
services.gnome3.at-spi2-core.enable = true;
|
||||||
services.gnome3.evolution-data-server.enable = true;
|
services.gnome3.evolution-data-server.enable = true;
|
||||||
@ -186,7 +189,7 @@ in
|
|||||||
gnome3.geary
|
gnome3.geary
|
||||||
gnome3.epiphany
|
gnome3.epiphany
|
||||||
gnome3.gnome-font-viewer
|
gnome3.gnome-font-viewer
|
||||||
] ++ pantheon.apps) config.environment.pantheon.excludePackages)
|
]) config.environment.pantheon.excludePackages)
|
||||||
++ (with pkgs;
|
++ (with pkgs;
|
||||||
[
|
[
|
||||||
adwaita-qt
|
adwaita-qt
|
||||||
@ -209,7 +212,6 @@ in
|
|||||||
fonts.fonts = with pkgs; [
|
fonts.fonts = with pkgs; [
|
||||||
open-sans
|
open-sans
|
||||||
roboto-mono
|
roboto-mono
|
||||||
pantheon.elementary-redacted-script # needed by screenshot-tool
|
|
||||||
];
|
];
|
||||||
|
|
||||||
fonts.fontconfig.defaultFonts = {
|
fonts.fontconfig.defaultFonts = {
|
||||||
@ -218,6 +220,26 @@ in
|
|||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
(mkIf serviceCfg.apps.enable {
|
||||||
|
environment.systemPackages = (with pkgs.pantheon; pkgs.gnome3.removePackagesByName [
|
||||||
|
elementary-calculator
|
||||||
|
elementary-calendar
|
||||||
|
elementary-camera
|
||||||
|
elementary-code
|
||||||
|
elementary-files
|
||||||
|
elementary-music
|
||||||
|
elementary-photos
|
||||||
|
elementary-screenshot-tool
|
||||||
|
elementary-terminal
|
||||||
|
elementary-videos
|
||||||
|
] config.environment.pantheon.excludePackages);
|
||||||
|
|
||||||
|
# needed by screenshot-tool
|
||||||
|
fonts.fonts = [
|
||||||
|
pkgs.pantheon.elementary-redacted-script
|
||||||
|
];
|
||||||
|
})
|
||||||
|
|
||||||
(mkIf serviceCfg.contractor.enable {
|
(mkIf serviceCfg.contractor.enable {
|
||||||
environment.systemPackages = with pkgs.pantheon; [
|
environment.systemPackages = with pkgs.pantheon; [
|
||||||
contractor
|
contractor
|
||||||
|
@ -3,13 +3,6 @@
|
|||||||
|
|
||||||
lib.makeScope pkgs.newScope (self: with self; {
|
lib.makeScope pkgs.newScope (self: with self; {
|
||||||
|
|
||||||
apps = [
|
|
||||||
elementary-calculator elementary-calendar
|
|
||||||
elementary-camera elementary-code elementary-files
|
|
||||||
elementary-music elementary-photos elementary-screenshot-tool
|
|
||||||
elementary-terminal elementary-videos switchboard-with-plugs
|
|
||||||
];
|
|
||||||
|
|
||||||
artwork = [
|
artwork = [
|
||||||
elementary-gtk-theme
|
elementary-gtk-theme
|
||||||
elementary-icon-theme
|
elementary-icon-theme
|
||||||
@ -22,6 +15,7 @@ lib.makeScope pkgs.newScope (self: with self; {
|
|||||||
elementary-session-settings
|
elementary-session-settings
|
||||||
elementary-shortcut-overlay
|
elementary-shortcut-overlay
|
||||||
gala
|
gala
|
||||||
|
switchboard-with-plugs
|
||||||
wingpanel-with-indicators
|
wingpanel-with-indicators
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user