2009-01-25 15:49:08 +00:00
|
|
|
{pkgs, config, ...}:
|
|
|
|
|
|
|
|
let
|
|
|
|
inherit (pkgs.lib) mkOption mkIf;
|
|
|
|
cfg = config.services.xserver.desktopManager.gnome;
|
|
|
|
gnome = pkgs.gnome;
|
|
|
|
|
|
|
|
options = { services = { xserver = { desktopManager = {
|
|
|
|
|
|
|
|
gnome = {
|
|
|
|
enable = mkOption {
|
|
|
|
default = false;
|
|
|
|
example = true;
|
|
|
|
description = "Enable a gnome terminal as a desktop manager.";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}; }; }; };
|
|
|
|
in
|
|
|
|
|
|
|
|
mkIf cfg.enable {
|
|
|
|
require = options;
|
|
|
|
|
|
|
|
services = {
|
|
|
|
xserver = {
|
|
|
|
|
|
|
|
desktopManager = {
|
|
|
|
session = [{
|
|
|
|
name = "gnome";
|
|
|
|
start = ''
|
|
|
|
${gnome.gnometerminal}/bin/gnome-terminal -ls &
|
|
|
|
waitPID=$!
|
|
|
|
'';
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
environment = {
|
2009-06-25 22:08:03 +00:00
|
|
|
x11Packages = [
|
2009-01-25 15:49:08 +00:00
|
|
|
gnome.gnometerminal
|
|
|
|
gnome.GConf
|
|
|
|
gnome.gconfeditor
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|