This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-05-29 22:17:48 +02:00
parent 82b8e81e92
commit 7e07ae4bc8
3 changed files with 20 additions and 4 deletions

View File

@@ -18,6 +18,7 @@ in
./system-modules/health_reminder.nix ./system-modules/health_reminder.nix
./system-modules/ollama.nix ./system-modules/ollama.nix
./system-modules/nx2site.nix ./system-modules/nx2site.nix
./system-modules/kodi.nix
]; ];

View File

@@ -1,17 +1,16 @@
{ config, pkgs, ... }: { lib, pkgs, host, ... }:
{ {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
sddm sddm
where-is-my-sddm-theme # where-is-my-sddm-theme
]; ];
services.xserver = { services.xserver = {
displayManager = { displayManager = {
defaultSession = "hyprland"; defaultSession = "hyprland";
sddm = { sddm = {
enable = true; enable = true;
theme = "where_is_my_sddm_theme"; # theme = "where_is_my_sddm_theme";
settings = { settings = {
theme = { theme = {
# background = /home/nx2/Pictures/ # background = /home/nx2/Pictures/
@@ -20,6 +19,10 @@
}; };
}; };
}; };
autoLogin = lib.mkIf (host == "NxACE") {
enable = true;
user = "tv";
};
}; };
}; };
} }

12
system-modules/kodi.nix Normal file
View File

@@ -0,0 +1,12 @@
{ pkgs, lib, host, ... }:
lib.mkIf (host == "NxACE")
{
services.xserver.desktopManager.kodi = {
enable = true;
};
services.cage = {
user = "kodi";
program = "${pkgs.kodi-wayland}/bin/kodi-standalone";
enable = true;
};
}