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

View file

@ -12,7 +12,6 @@
"ahci"
"usb_storage"
"sd_mod"
"iwlwifi"
];
};
kernelModules = [ ];
@ -29,6 +28,15 @@
device = "/dev/disk/by-uuid/0B6D-0DCD";
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 = [