From b013771c9fd8ec8305a05e46ac009b30f7086b7f Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 18 Jan 2026 00:01:36 +0900 Subject: [PATCH] hosts/xps16: attempt muting audio on closing laptop lid --- hosts/xps16/configuration.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/xps16/configuration.nix b/hosts/xps16/configuration.nix index db71c25..4b96707 100644 --- a/hosts/xps16/configuration.nix +++ b/hosts/xps16/configuration.nix @@ -57,6 +57,12 @@ LC_ALL = "en_US.UTF-8"; }; + # NOTE: this doesn't work as intended, the intention is to have the + # laptop set the volume to 0 when the lid is closed, :shrug: + powerManagement.powerDownCommands = '' + ${pkgs.wireplumber}/bin/wpctl set-volume @DEFAULT_SINK@ 0 + ''; + console = { earlySetup = true; font = "${pkgs.terminus_font}/share/consolefonts/ter-132n.psf.gz";