1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/modules/services/x11/desktop-managers/xfce.nix

44 lines
727 B
Nix
Raw Normal View History

{ 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
];
};
}