feat: Jellyfin-mpv-shim with local idle pics

This commit is contained in:
Tibo De Peuter 2024-07-06 10:26:21 +02:00
parent fbb4defab8
commit ad60695af4
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
2 changed files with 32 additions and 9 deletions

View file

@ -52,6 +52,10 @@
}; };
networkmanager.enable = true; networkmanager.enable = true;
extraHosts = ''
192.168.0.11 jelly.depeuter.dev
'';
}; };
nix = { nix = {
@ -68,16 +72,20 @@
# List services that you want to enable: # List services that you want to enable:
services = { services = {
displayManager = { # Cage, a wayland kiosk service
cage = {
enable = true; enable = true;
autoLogin = { environment = {
enable = true; # Do not fail when there are no input devices.
user = config.users.users.jellyfin-mpv-shim.name; # WLR_LIBINPUT_NO_DEVICES = "1";
}; };
}; extraArguments = [
xserver = { "-d" # Don't draw client side decorations, when possible
enable = true; # "-m" "last" # Use only the last connected output
displayManager.startx.enable = true; "-s" # Allow VT switching
];
program = "/home/jellyfin-mpv-shim/start.sh";
user = config.users.users.jellyfin-mpv-shim.name;
}; };
openssh = { openssh = {
@ -126,6 +134,8 @@
]; ];
packages = with pkgs; [ packages = with pkgs; [
jellyfin-mpv-shim jellyfin-mpv-shim
mpv
socat
]; ];
}; };
}; };
@ -158,9 +168,14 @@
]; ];
}; };
systemd.services."cage-tty1".serviceConfig.Restart = "always";
system.stateVersion = "24.05"; system.stateVersion = "24.05";
virtualisation = { virtualisation = {
# Enable Android emulator
# waydroid.enable = true;
docker = { docker = {
enable = true; enable = true;
autoPrune.enable = true; autoPrune.enable = true;

View file

@ -12,7 +12,6 @@
"ahci" "ahci"
"usb_storage" "usb_storage"
"sd_mod" "sd_mod"
"iwlwifi"
]; ];
}; };
kernelModules = [ ]; kernelModules = [ ];
@ -29,6 +28,15 @@
device = "/dev/disk/by-uuid/0B6D-0DCD"; device = "/dev/disk/by-uuid/0B6D-0DCD";
fsType = "vfat"; fsType = "vfat";
}; };
# "/data/photos" = {
# device = "//192.168.0.11/CANVAS";
# fsType = "cifs";
# options = let
# # this line prevents hanging on network split
# automount_opts = "x-systemd.automount,noauto,x-systemd.idle-timeout=60,x-systemd.device-timeout=5s,x-systemd.mount-timeout=5s";
# in ["${automount_opts},credentials=/etc/nixos/smb-secrets"];
# };
}; };
swapDevices = [ swapDevices = [