mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-10 04:49:19 -08:00
Redone a number of modules, now they speak JSON. Added a konawall toggler module. Removed mkchromecast from autostart. Moved from pavucontrol to pulsemixer.
15 lines
489 B
Nix
15 lines
489 B
Nix
{ stdenv, wrapShellScriptBin, pkgs }:
|
|
|
|
let toggle = wrapShellScriptBin "konawall-toggle" ./toggle.sh { };
|
|
status = wrapShellScriptBin "konawall-status" ./status.sh { };
|
|
in stdenv.mkDerivation {
|
|
pname = "konawall-toggle";
|
|
version = "0.0.1";
|
|
unpackPhase = "true";
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp ${status}/bin/konawall-status $out/bin/konawall-status
|
|
cp ${toggle}/bin/konawall-toggle $out/bin/konawall-toggle
|
|
chmod +x $out/bin/konawall-{status,toggle}
|
|
'';
|
|
}
|