This repository has no description
0

Configure Feed

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

add wifi-qr scanner util

+24
+1
flake.nix
··· 128 128 ./tools/nvim.nix 129 129 ./tools/astronvim/flake-module.nix 130 130 ./tools/zsh.nix 131 + ./tools/wifi-qr.nix 131 132 ./tools/get-spora-hosts.nix 132 133 ./formatter.nix 133 134 ];
+21
tools/wifi-qr.nix
··· 1 + 2 + { ... }: 3 + { 4 + perSystem = 5 + { pkgs, ... }: { 6 + packages.wifi-qr = pkgs.writeShellApplication { 7 + name = "wifi-qr"; 8 + runtimeInputs = [ 9 + pkgs.zbar 10 + pkgs.gawk 11 + ]; 12 + text = '' 13 + QR_CODE=$(zbarcam --raw --oneshot) 14 + SSID=$(echo "$QR_CODE" | awk -F 'S:' '{print $2}' | awk -F ';' '{print $1}') 15 + PW=$(echo "$QR_CODE" | awk -F 'P:' '{print $2}' | awk -F ';' '{print $1}') 16 + nmcli dev wifi rescan 17 + nmcli dev wifi connect "$SSID" password "$PW" 18 + ''; 19 + }; 20 + }; 21 + }
+2
2configs/desktops/lib/wayland.nix
··· 92 92 # polkit agent 93 93 polkit_gnome 94 94 95 + self.packages.${pkgs.system}.wifi-qr 96 + 95 97 # gtk3 themes 96 98 gsettings-desktop-schemas 97 99 self.packages.${pkgs.system}.otpmenu