mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-07-05 17:19:29 +02:00
machine/workman: mute audio before sleep
Some checks are pending
/ Build Nix targets (push) Waiting to run
Some checks are pending
/ Build Nix targets (push) Waiting to run
This commit is contained in:
parent
a57752f9dd
commit
7481f09d92
1 changed files with 12 additions and 0 deletions
|
@ -11,6 +11,18 @@ in
|
|||
services.power-profiles-daemon.enable = true;
|
||||
services.tlp.enable = false;
|
||||
|
||||
systemd.services.audio-off = {
|
||||
description = "Mute audio before suspend";
|
||||
wantedBy = [ "sleep.target" ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
Environment = "XDG_RUNTIME_DIR=/run/user/1000";
|
||||
User = "felix";
|
||||
RemainAfterExit = "yes";
|
||||
ExecStart = "${pkgs.pamixer}/bin/pamixer --mute";
|
||||
};
|
||||
};
|
||||
|
||||
my.hardware = {
|
||||
bluetooth.enable = true;
|
||||
debug.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue