mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 10:56:56 +00:00
5041cdddbd
Xfwm and Terminal. svn path=/nixos/trunk/; revision=23048
44 lines
727 B
Nix
44 lines
727 B
Nix
{ 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
|
|
];
|
|
|
|
};
|
|
|
|
}
|