Add initial media1 host
This commit is contained in:
26
hosts/media1/kodi.nix
Normal file
26
hosts/media1/kodi.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ pkgs, ... }:
|
||||
let
|
||||
kodipkg = pkgs.kodi-wayland.withPackages (
|
||||
p: with p; [
|
||||
jellyfin
|
||||
]
|
||||
);
|
||||
in
|
||||
{
|
||||
users.users.kodi = {
|
||||
isNormalUser = true;
|
||||
description = "Kodi Media Center user";
|
||||
};
|
||||
services.xserver = {
|
||||
enable = true;
|
||||
};
|
||||
services.cage = {
|
||||
enable = true;
|
||||
user = "kodi";
|
||||
program = "${kodipkg}/bin/kodi";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
firefox
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user