1 { config, lib, pkgs, ... }:
6 xcfg = config.services.xserver;
7 cfg = xcfg.desktopManager.cde;
9 options.services.xserver.desktopManager.cde = {
10 enable = mkEnableOption "Common Desktop Environment";
12 extraPackages = mkOption {
13 type = with types; listOf package;
14 default = with pkgs.xorg; [
15 xclock bitmap xlsfonts xfd xrefresh xload xwininfo xdpyinfo xwd xwud
17 defaultText = literalExpression ''
19 xclock bitmap xlsfonts xfd xrefresh xload xwininfo xdpyinfo xwd xwud
23 Extra packages to be installed system wide.
28 config = mkIf (xcfg.enable && cfg.enable) {
29 environment.systemPackages = cfg.extraPackages;
31 services.rpcbind.enable = true;
33 services.xinetd.enable = true;
34 services.xinetd.services = [
39 server = "${pkgs.cdesktopenv}/bin/rpc.cmsd";
44 only_from = 127.0.0.1/0
49 users.groups.mail = {};
55 source = "${pkgs.cdesktopenv}/bin/dtmail";
59 system.activationScripts.setup-cde = ''
60 mkdir -p /var/dt/{tmp,appconfig/appmanager}
61 chmod a+w+t /var/dt/{tmp,appconfig/appmanager}
64 services.xserver.desktopManager.session = [
67 exec ${pkgs.cdesktopenv}/bin/Xsession
72 meta.maintainers = [ ];