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); });