mirror of
https://github.com/kmein/niveum
synced 2026-03-20 03:51:07 +01:00
feat: gaslight
This commit is contained in:
@@ -19,6 +19,7 @@ in {
|
|||||||
./flix.nix
|
./flix.nix
|
||||||
./fonts.nix
|
./fonts.nix
|
||||||
./fzf.nix
|
./fzf.nix
|
||||||
|
./gaslight.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
./hledger.nix
|
./hledger.nix
|
||||||
./htop.nix
|
./htop.nix
|
||||||
|
|||||||
25
configs/gaslight.nix
Normal file
25
configs/gaslight.nix
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
environment.systemPackages = [
|
||||||
|
(pkgs.writers.writeDashBin "gaslight-stream" ''
|
||||||
|
${pkgs.ffmpeg}/bin/ffmpeg -r 14 -s 640x480 -f video4linux2 -i /dev/video0 -f alsa -i default -c:v libx264 -preset ultrafast -c:a aac -f avi -
|
||||||
|
'')
|
||||||
|
(pkgs.writers.writeDashBin "gaslight-say" ''
|
||||||
|
voices="de
|
||||||
|
de+whisper"
|
||||||
|
|
||||||
|
echo "$@" | ${pkgs.espeak}/bin/espeak -v "$(echo "$voices" | ${pkgs.coreutils}/bin/shuf -n1)"
|
||||||
|
'')
|
||||||
|
(pkgs.writers.writeDashBin "gaslight-play" ''
|
||||||
|
set -o noglob
|
||||||
|
${pkgs.mpv}/bin/mpv --no-video "$1"
|
||||||
|
'')
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
ssh machine gaslight-stream | mpv -
|
||||||
|
ssh machine gaslight-say "blablabla"
|
||||||
|
|
||||||
|
*/
|
||||||
@@ -19,6 +19,7 @@ in {
|
|||||||
ports = [ sshPort ];
|
ports = [ sshPort ];
|
||||||
enable = true;
|
enable = true;
|
||||||
passwordAuthentication = false;
|
passwordAuthentication = false;
|
||||||
|
forwardX11 = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.motd = "Welcome to ${config.networking.hostName}!";
|
users.motd = "Welcome to ${config.networking.hostName}!";
|
||||||
|
|||||||
Reference in New Issue
Block a user