remove extraLib, replace mkScript with writeShellApplication

This commit is contained in:
Noah Masur committed 2023-07-01 20:40:48 -06:00
1 parent 1cf5f46adf
commit 53a8cc83ea
4 files changed
+6 -23

No files matched your search

+3 -3
View File
@@ -167,10 +167,10 @@ in {
altTabCommand = "${rofi}/bin/rofi -show window -modi window";
calculatorCommand = "${rofi}/bin/rofi -modes calc -show calc";
audioSwitchCommand = "${
(pkgs.extraLib.mkScript {
(pkgs.writeShellApplication {
name = "switch-audio";
file = ./rofi/pulse-sink.sh;
env = [ pkgs.ponymix rofi ];
runtimeInputs = [ pkgs.ponymix rofi ];
text = builtins.readFile ./rofi/pulse-sink.sh;
})
}/bin/switch-audio";
};