3
0
Fork 0
forked from mirrors/nixpkgs

* Start of an Xfce desktop manager module. Currently it just starts

Xfwm and Terminal.

svn path=/nixos/trunk/; revision=23048
This commit is contained in:
Eelco Dolstra 2010-08-08 22:45:54 +00:00
parent 6e118cd66b
commit 5041cdddbd
3 changed files with 45 additions and 3 deletions

View file

@ -17,7 +17,7 @@ in
# Note: the order in which desktop manager modules are imported here
# determines the default: later modules (if enabled) are preferred.
# E.g., if KDE is enabled, it supersedes xterm.
imports = [ ./none.nix ./xterm.nix ./gnome.nix ./kde4.nix ];
imports = [ ./none.nix ./xterm.nix ./xfce.nix ./gnome.nix ./kde4.nix ];
options = {

View file

@ -23,8 +23,7 @@ in
default = [];
example = [ pkgs.kde4.digikam ];
type = types.list types.package;
description = "Additional KDE 4 programs. Only minimal set is installed by
default.";
description = "Additional KDE 4 programs. Only a minimal set is installed by default.";
};
};

View file

@ -0,0 +1,43 @@
{ config, pkgs, ... }:
with pkgs.lib;
let
xcfg = config.services.xserver;
cfg = xcfg.desktopManager.xfce;
in
{
options = {
services.xserver.desktopManager.xfce.enable = mkOption {
default = false;
example = true;
description = "Enable the Xfce desktop environment.";
};
};
config = mkIf (xcfg.enable && cfg.enable) {
services.xserver.desktopManager.session = singleton
{ name = "xfce";
bgSupport = true;
start =
''
${pkgs.xfce.xfwm4}/bin/xfwm4 --daemon
exec ${pkgs.xfce.terminal}/bin/terminal
'';
};
environment.systemPackages =
[ pkgs.xfce.xfwm4
pkgs.xfce.terminal
];
};
}