nixos.enlightenment: add option to exclude packages (#433631)
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
|
||||||
lib,
|
lib,
|
||||||
|
pkgs,
|
||||||
|
utils,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@@ -12,6 +13,7 @@ let
|
|||||||
e = pkgs.enlightenment;
|
e = pkgs.enlightenment;
|
||||||
xcfg = config.services.xserver;
|
xcfg = config.services.xserver;
|
||||||
cfg = xcfg.desktopManager.enlightenment;
|
cfg = xcfg.desktopManager.enlightenment;
|
||||||
|
|
||||||
GST_PLUGIN_PATH = lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" [
|
GST_PLUGIN_PATH = lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" [
|
||||||
pkgs.gst_all_1.gst-plugins-base
|
pkgs.gst_all_1.gst-plugins-base
|
||||||
pkgs.gst_all_1.gst-plugins-good
|
pkgs.gst_all_1.gst-plugins-good
|
||||||
@@ -41,11 +43,17 @@ in
|
|||||||
description = "Enable the Enlightenment desktop environment.";
|
description = "Enable the Enlightenment desktop environment.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.enlightenment.excludePackages = mkOption {
|
||||||
|
default = [ ];
|
||||||
|
example = literalExpression "[ pkgs.enlightenment.ephoto ]";
|
||||||
|
type = types.listOf types.package;
|
||||||
|
description = "Which packages Enlightenment should exclude from the default environment";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = utils.removePackagesByName (with pkgs; [
|
||||||
enlightenment.econnman
|
enlightenment.econnman
|
||||||
enlightenment.efl
|
enlightenment.efl
|
||||||
enlightenment.enlightenment
|
enlightenment.enlightenment
|
||||||
@@ -54,7 +62,7 @@ in
|
|||||||
enlightenment.rage
|
enlightenment.rage
|
||||||
enlightenment.terminology
|
enlightenment.terminology
|
||||||
xorg.xcursorthemes
|
xorg.xcursorthemes
|
||||||
];
|
]) config.environment.enlightenment.excludePackages;
|
||||||
|
|
||||||
environment.pathsToLink = [
|
environment.pathsToLink = [
|
||||||
"/etc/enlightenment"
|
"/etc/enlightenment"
|
||||||
|
|||||||
Reference in New Issue
Block a user