flake.nix: restart pulseaudio after switching a config
This commit is contained in:
parent
5def6f0b9e
commit
da54985039
1 changed files with 3 additions and 0 deletions
|
@ -82,6 +82,9 @@
|
||||||
switch = lib.recurseIntoAttrs (lib.mapAttrs
|
switch = lib.recurseIntoAttrs (lib.mapAttrs
|
||||||
(hostname: machine: pkgs.writeShellScript "switch/${hostname}" ''
|
(hostname: machine: pkgs.writeShellScript "switch/${hostname}" ''
|
||||||
${nixos-rebuild}/bin/nixos-rebuild switch --flake .#${hostname} $@
|
${nixos-rebuild}/bin/nixos-rebuild switch --flake .#${hostname} $@
|
||||||
|
${lib.optionalString machine.config.hardware.pulseaudio.systemWide ''
|
||||||
|
systemctl restart pulseaudio.service
|
||||||
|
''}
|
||||||
'')
|
'')
|
||||||
localMachines);
|
localMachines);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue