commit
a5e443295b
@ -15,6 +15,7 @@ in
|
|||||||
./wmii.nix
|
./wmii.nix
|
||||||
./xmonad.nix
|
./xmonad.nix
|
||||||
./i3.nix
|
./i3.nix
|
||||||
|
./xbmc.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
31
modules/services/x11/window-managers/xbmc.nix
Normal file
31
modules/services/x11/window-managers/xbmc.nix
Normal file
@ -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 ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user