mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat(zaatar): run audio control tmux session
This commit is contained in:
@@ -14,9 +14,34 @@
|
|||||||
{
|
{
|
||||||
sound.enable = true;
|
sound.enable = true;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
environment.systemPackages = [
|
||||||
|
(pkgs.writers.writeDashBin "mpv" ''
|
||||||
|
${pkgs.mpv}/bin/mpv --no-video "$@"
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
}
|
||||||
{
|
{
|
||||||
services.illum.enable = true;
|
services.illum.enable = true;
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
environment.systemPackages = [ pkgs.tmux ];
|
||||||
|
systemd.services.turntables = {
|
||||||
|
description = "music controller session";
|
||||||
|
after = [ "network.target" ];
|
||||||
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
path = [ pkgs.alacritty.terminfo ];
|
||||||
|
script = ''
|
||||||
|
${pkgs.tmux}/bin/tmux -2 new-session -d -s turntables ${pkgs.ncmpcpp}/bin/ncmpcpp \; split-pane -h \; split-pane -v ${pkgs.alsaUtils}/bin/alsamixer
|
||||||
|
'';
|
||||||
|
preStop = "${pkgs.tmux}/bin/tmux kill-session -t turntables";
|
||||||
|
serviceConfig = {
|
||||||
|
User = "root";
|
||||||
|
RemainAfterExit = true;
|
||||||
|
Type = "oneshot";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
{
|
{
|
||||||
users.extraUsers.kiosk = {
|
users.extraUsers.kiosk = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user