This commit is contained in:
Johannes Jöns 2023-12-31 23:40:52 +01:00
parent d5decefda9
commit df61889536
3 changed files with 26 additions and 0 deletions

View file

@ -7,6 +7,7 @@
./auto-update
./bluetooth
./events
./kodi
./local
./minecraft-server
./moodle-dl

24
modules/kodi/default.nix Normal file
View 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;
};
};
};
};
}

View file

@ -23,6 +23,7 @@
bluetooth.enable = true;
local.enable = true;
nix.enable = true;
kodi.enable = true;
root.enable = true;
jopejoe1.enable = true;
};