reformatting

This commit is contained in:
notgne2 2021-11-10 03:59:44 -07:00
parent 47f0cd1be2
commit 7f59c589a7
No known key found for this signature in database
GPG Key ID: BB661E172B42A7F8
5 changed files with 226 additions and 215 deletions

View File

@ -375,7 +375,8 @@ in
modules = modules =
let let
checkWttr = "${pkgs.bash}/bin/bash -c '! (${pkgs.curl}/bin/curl wttr.in/${cfg.location}?format=+ | ${pkgs.gnugrep}/bin/grep \\'^Unknown location;\\')'"; checkWttr = "${pkgs.bash}/bin/bash -c '! (${pkgs.curl}/bin/curl wttr.in/${cfg.location}?format=+ | ${pkgs.gnugrep}/bin/grep \\'^Unknown location;\\')'";
in { in
{
"custom/left-arrow-dark" = { "custom/left-arrow-dark" = {
format = ""; format = "";
tooltip = false; tooltip = false;

View File

@ -172,19 +172,23 @@ in
Service = { Service = {
Type = "simple"; Type = "simple";
ExecStart = let ExecStart =
let
steamStart = pkgs.writeShellScript "steam-start" '' steamStart = pkgs.writeShellScript "steam-start" ''
${pkgs.systemd}/bin/systemctl --user stop scc ${pkgs.systemd}/bin/systemctl --user stop scc
# no sleep is needed here because steam is slow as fuck lol # no sleep is needed here because steam is slow as fuck lol
/run/current-system/sw/bin/steam /run/current-system/sw/bin/steam
''; '';
in "${steamStart}"; in
ExecStop = let "${steamStart}";
ExecStop =
let
steamStop = pkgs.writeShellScript "steam-stop" '' steamStop = pkgs.writeShellScript "steam-stop" ''
${pkgs.coreutils}/bin/sleep 5 # give time for controller to reset ${pkgs.coreutils}/bin/sleep 5 # give time for controller to reset
${pkgs.systemd}/bin/systemctl --user start scc ${pkgs.systemd}/bin/systemctl --user start scc
''; '';
in "${steamStop}"; in
"${steamStop}";
}; };
Install = { WantedBy = [ "graphical-session.target" ]; }; Install = { WantedBy = [ "graphical-session.target" ]; };

View File

@ -176,14 +176,20 @@ in
# Steam remote play # Steam remote play
27036 27036
# Sunshine/moonlight streaming # Sunshine/moonlight streaming
47984 47989 48010 47984
47989
48010
]; ];
networking.firewall.allowedUDPPorts = [ networking.firewall.allowedUDPPorts = [
# Used for upnp or something? # Used for upnp or something?
1900 1900
# Sunshine/moonlight streaming # Sunshine/moonlight streaming
47998 47999 48000 48002 48010 47998
47999
48000
48002
48010
]; ];
# Shit breaks without this lol # Shit breaks without this lol