This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

add xbmc window manager

  • Loading branch information...
domenkozar committed Feb 16, 2013
1 parent 08fdc23 commit 4a663316257509e82700f5166aa490db46e93ffe
Showing with 32 additions and 0 deletions.
  1. +1 −0 modules/services/x11/window-managers/default.nix
  2. +31 −0 modules/services/x11/window-managers/xbmc.nix
@@ -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 ];
};
}

0 comments on commit 4a66331

Please sign in to comment.