add xbmc window manager

This commit is contained in:
Domen Kozar 2013-02-16 23:19:09 +01:00
parent 08fdc234c8
commit 4a66331625
2 changed files with 32 additions and 0 deletions

@ -15,6 +15,7 @@ in
./wmii.nix
./xmonad.nix
./i3.nix
./xbmc.nix
];
options = {

@ -0,0 +1,31 @@
{pkgs, config, ...}:
let
inherit (pkgs.lib) mkOption mkIf;
cfg = config.services.xserver.windowManager.xbmc;
in
{
options = {
services.xserver.windowManager.xbmc = {
enable = mkOption {
default = false;
example = true;
description = "Enable the xbmc multimedia center.";
};
};
};
config = mkIf cfg.enable {
services.xserver.windowManager = {
session = [{
name = "xbmc";
start = "
${pkgs.xbmc}/bin/xbmc-standalone &
waitPID=$!
";
}];
};
environment.systemPackages = [ pkgs.xbmc ];
};
}