1
Fork 0

Started working on guest@euporie

This commit is contained in:
Matei Adriel 2023-05-28 02:00:10 +02:00
parent 0503a81ee8
commit 230a739327
No known key found for this signature in database
62 changed files with 188 additions and 135 deletions
hosts/nixos/common/optional

View file

@ -1,6 +1,7 @@
{
{ pkgs, ... }: {
security.rtkit.enable = true;
hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
alsa.enable = true;
@ -10,14 +11,17 @@
};
# Volume controls
environment.shellAliases = {
# Relative
"v-up" = "pactl set-sink-volume @DEFAULT_SINK@ +5%";
"v-down" = "pactl set-sink-volume @DEFAULT_SINK@ +5%";
environment.shellAliases =
let pactl = "${pkgs.pulseaudio}/bin/pactl";
in
{
# Relative
"v-up" = "${pactl} set-sink-volume @DEFAULT_SINK@ +5%";
"v-down" = "${pactl} set-sink-volume @DEFAULT_SINK@ +5%";
# Absolute
"v-min" = "pactl set-sink-volume @DEFAULT_SINK@ 0%";
"v-mid" = "pactl set-sink-volume @DEFAULT_SINK@ 50%";
"v-max" = "pactl set-sink-volume @DEFAULT_SINK@ 100%";
};
# Absolute
"v-min" = "${pactl} set-sink-volume @DEFAULT_SINK@ 0%";
"v-mid" = "${pactl} set-sink-volume @DEFAULT_SINK@ 50%";
"v-max" = "${pactl} set-sink-volume @DEFAULT_SINK@ 100%";
};
}