nixpkgs/nixos/modules/services/x11/desktop-managers/kodi.nix

31 lines
575 B
Nix
Raw Normal View History

2015-01-19 21:14:36 +00:00
{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.services.xserver.desktopManager.kodi;
in
{
options = {
services.xserver.desktopManager.kodi = {
enable = mkOption {
default = false;
description = "Enable the kodi multimedia center.";
};
};
};
config = mkIf cfg.enable {
services.xserver.desktopManager.session = [{
name = "kodi";
start = ''
2018-12-19 21:43:05 +00:00
${pkgs.kodi}/bin/kodi --lircdev /run/lirc/lircd --standalone &
2015-01-19 21:14:36 +00:00
waitPID=$!
'';
}];
environment.systemPackages = [ pkgs.kodi ];
};
}