my nixos/home-manager configuration
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix discord krisp patcher

youn 57021e39 71056591

+12 -14
+12 -14
home-manager/modules/discord.nix
··· 43 43 ]; 44 44 45 45 home.activation.krispPatcher = lib.hm.dag.entryAfter [ "installPackages" ] '' 46 - already_patched=false 47 46 for node in "${config.xdg.configHome}/discord/"*"/modules/discord_krisp/discord_krisp.node"; do 48 47 if [ ! -e "$node" ]; then continue; fi 48 + 49 + already_patched=false 49 50 50 51 run mkdir -p "$(dirname "/tmp/$node")" 51 52 run cp "$node" "/tmp/$node" ··· 56 57 run rm "/tmp/$node" 57 58 already_patched=true 58 59 fi 59 - done 60 60 61 - if [ "$already_patched" = false ]; then 62 - discord_was_running=false 63 - if ${pkgs.procps}/bin/pgrep -f discord > /dev/null; then 64 - discord_was_running=true 65 - run ${pkgs.procps}/bin/pkill -f discord || true 66 - fi 61 + if [ "$already_patched" = false ]; then 62 + discord_was_running=false 63 + if ${pkgs.procps}/bin/pgrep -f discord > /dev/null; then 64 + discord_was_running=true 65 + run ${pkgs.procps}/bin/pkill -f discord || true 66 + fi 67 67 68 - for node in "${config.xdg.configHome}/discord/"*"/modules/discord_krisp/discord_krisp.node"; do 69 - if [ ! -e "$node" ]; then continue; fi 70 68 run cp "/tmp/$node" "$node" 71 69 run rm "/tmp/$node" 72 - done 73 70 74 - if [ "$discord_was_running" = true ]; then 75 - run ${discordPackage}/bin/discord > /dev/null 2>&1 & 71 + if [ "$discord_was_running" = true ]; then 72 + run ${discordPackage}/bin/discord > /dev/null 2>&1 & 73 + fi 76 74 fi 77 - fi 75 + done 78 76 ''; 79 77 }; 80 78 }