From df618895364fd690e6425378db361d6de3de5ac9 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Sun, 31 Dec 2023 23:40:52 +0100 Subject: [PATCH] add kodi --- modules/default.nix | 1 + modules/kodi/default.nix | 24 ++++++++++++++++++++++++ systems/inugami/default.nix | 1 + 3 files changed, 26 insertions(+) create mode 100644 modules/kodi/default.nix diff --git a/modules/default.nix b/modules/default.nix index 9b7d69a..22cd946 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -7,6 +7,7 @@ ./auto-update ./bluetooth ./events + ./kodi ./local ./minecraft-server ./moodle-dl diff --git a/modules/kodi/default.nix b/modules/kodi/default.nix new file mode 100644 index 0000000..1fe8620 --- /dev/null +++ b/modules/kodi/default.nix @@ -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; + }; + }; + }; + }; +} + diff --git a/systems/inugami/default.nix b/systems/inugami/default.nix index 634ff5d..195ec28 100644 --- a/systems/inugami/default.nix +++ b/systems/inugami/default.nix @@ -23,6 +23,7 @@ bluetooth.enable = true; local.enable = true; nix.enable = true; + kodi.enable = true; root.enable = true; jopejoe1.enable = true; };