mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ config, lib, tf, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
kw.secrets.variables = {
|
|
syncplay-pass = {
|
|
path = "services/media/syncplay";
|
|
field = "password";
|
|
};
|
|
};
|
|
|
|
programs.syncplay = {
|
|
enable = true;
|
|
username = "kat";
|
|
defaultRoom = "lounge";
|
|
server = {
|
|
host = "sync.kittywit.ch";
|
|
password = tf.variables.syncplay-pass.ref;
|
|
};
|
|
playerArgs = [
|
|
"--ytdl-format=bestvideo[height<=1080]+bestaudio/best[height<=1080]/bestvideo+bestaudio/best"
|
|
];
|
|
# gui = false;
|
|
config = {
|
|
client_settings = {
|
|
onlyswitchtotrusteddomains = false;
|
|
autoplayrequiresamefiles = false;
|
|
readyatstart = true;
|
|
pauseonleave = false;
|
|
rewindondesync = false;
|
|
rewindthreshold = 6.0;
|
|
fastforwardthreshold = 6.0;
|
|
unpauseaction = "Always";
|
|
};
|
|
gui = {
|
|
#autosavejoinstolist = false;
|
|
showdurationnotification = false;
|
|
};
|
|
};
|
|
};
|
|
|
|
secrets.files.syncplay-config = {
|
|
text = config.programs.syncplay.configIni;
|
|
};
|
|
|
|
xdg.configFile."syncplay.ini" = mkForce {
|
|
source = config.lib.file.mkOutOfStoreSymlink config.secrets.files.syncplay-config.path;
|
|
};
|
|
}
|