mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-22 13:08:39 +03:00
Merge pull request #87934 from gnidorah/cde
nixos/cde: add extraPackages option
This commit is contained in:
commit
ff88568673
@ -8,9 +8,26 @@ let
|
|||||||
in {
|
in {
|
||||||
options.services.xserver.desktopManager.cde = {
|
options.services.xserver.desktopManager.cde = {
|
||||||
enable = mkEnableOption "Common Desktop Environment";
|
enable = mkEnableOption "Common Desktop Environment";
|
||||||
|
|
||||||
|
extraPackages = mkOption {
|
||||||
|
type = with types; listOf package;
|
||||||
|
default = with pkgs.xorg; [
|
||||||
|
xclock bitmap xlsfonts xfd xrefresh xload xwininfo xdpyinfo xwd xwud
|
||||||
|
];
|
||||||
|
example = literalExample ''
|
||||||
|
with pkgs.xorg; [
|
||||||
|
xclock bitmap xlsfonts xfd xrefresh xload xwininfo xdpyinfo xwd xwud
|
||||||
|
]
|
||||||
|
'';
|
||||||
|
description = ''
|
||||||
|
Extra packages to be installed system wide.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf (xcfg.enable && cfg.enable) {
|
config = mkIf (xcfg.enable && cfg.enable) {
|
||||||
|
environment.systemPackages = cfg.extraPackages;
|
||||||
|
|
||||||
services.rpcbind.enable = true;
|
services.rpcbind.enable = true;
|
||||||
|
|
||||||
services.xinetd.enable = true;
|
services.xinetd.enable = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user