From da549850393108be0de5d6950aef5252bb4c22e3 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Fri, 17 May 2024 19:06:40 +0300 Subject: [PATCH] flake.nix: restart pulseaudio after switching a config --- flake.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flake.nix b/flake.nix index 8f9e6e3..5e4a5d9 100644 --- a/flake.nix +++ b/flake.nix @@ -82,6 +82,9 @@ switch = lib.recurseIntoAttrs (lib.mapAttrs (hostname: machine: pkgs.writeShellScript "switch/${hostname}" '' ${nixos-rebuild}/bin/nixos-rebuild switch --flake .#${hostname} $@ + ${lib.optionalString machine.config.hardware.pulseaudio.systemWide '' + systemctl restart pulseaudio.service + ''} '') localMachines); });