mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-01 14:36:34 +01:00
add kodi
This commit is contained in:
parent
d5decefda9
commit
df61889536
3 changed files with 26 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
./auto-update
|
||||
./bluetooth
|
||||
./events
|
||||
./kodi
|
||||
./local
|
||||
./minecraft-server
|
||||
./moodle-dl
|
||||
|
|
24
modules/kodi/default.nix
Normal file
24
modules/kodi/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ config, lib, pkgs, self, ... }:
|
||||
|
||||
let cfg = config.jopejoe1.kodi;
|
||||
in {
|
||||
options.jopejoe1.kodi = { enable = lib.mkEnableOption "Enable Kodi"; };
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
desktopManger.kodi.enable = true;
|
||||
displayManager = {
|
||||
autoLogin = {
|
||||
enable = true;
|
||||
user = "jopejoe1";
|
||||
};
|
||||
ligthdm = {
|
||||
enable = true;
|
||||
autoLogin.timeout = 3;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -23,6 +23,7 @@
|
|||
bluetooth.enable = true;
|
||||
local.enable = true;
|
||||
nix.enable = true;
|
||||
kodi.enable = true;
|
||||
root.enable = true;
|
||||
jopejoe1.enable = true;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue