profiles/gui: moved obs+syncplay into their own files, added obs alias

for xwayland
This commit is contained in:
kat witch 2021-04-30 17:51:56 +01:00
parent 73eb7f675f
commit 3bbb0f677a
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
4 changed files with 42 additions and 29 deletions

View file

@ -11,5 +11,7 @@
./gtk.nix
./music.nix
./mpv.nix
./syncplay.nix
./obs.nix
];
}

View file

@ -1,11 +1,6 @@
{ config, lib, pkgs, ... }:
{
programs.obs-studio = {
enable = true;
plugins = [ pkgs.obs-wlrobs ];
};
programs.mpv = {
enable = true;
scripts = [ pkgs.mpvScripts.sponsorblock ];
@ -38,28 +33,4 @@
});
};
};
programs.syncplay = {
enable = true;
username = "kat";
defaultRoom = "lounge";
server = { host = "sync.kittywit.ch"; };
# 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;
};
};
};
}

12
profiles/gui/home/obs.nix Normal file
View file

@ -0,0 +1,12 @@
{ config, pkgs, ... }:
{
programs.obs-studio = {
enable = true;
plugins = [ pkgs.obs-wlrobs ];
};
programs.zsh.shellAliases = {
obs="env QT_QPA_PLATFORM=xcb obs";
};
}

View file

@ -0,0 +1,28 @@
{ config, ... }:
{
programs.syncplay = {
enable = true;
username = "kat";
defaultRoom = "lounge";
server = { host = "sync.kittywit.ch"; };
# 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;
};
};
};
}