alpha
Login
or
Join now
lass.pds.lassul.us
/
superconfig
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
1
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
1
Pipelines
add wifi-qr scanner util
author
lassulus
date
2 years ago
(Feb 9, 2025, 5:38 AM CET)
commit
1ed7ec4e
1ed7ec4ed53198586306418aa16a9e141427586b
parent
287150e8
287150e8fb92dbd3dc67dc484ce137ea1b8e4e5e
+24
3 changed files
Expand all
Collapse all
Unified
Split
2configs
desktops
lib
wayland.nix
flake.nix
tools
wifi-qr.nix
+1
flake.nix
View file
Reviewed
···
128
128
./tools/nvim.nix
129
129
./tools/astronvim/flake-module.nix
130
130
./tools/zsh.nix
131
131
+
./tools/wifi-qr.nix
131
132
./tools/get-spora-hosts.nix
132
133
./formatter.nix
133
134
];
+21
tools/wifi-qr.nix
View file
Reviewed
···
1
1
+
2
2
+
{ ... }:
3
3
+
{
4
4
+
perSystem =
5
5
+
{ pkgs, ... }: {
6
6
+
packages.wifi-qr = pkgs.writeShellApplication {
7
7
+
name = "wifi-qr";
8
8
+
runtimeInputs = [
9
9
+
pkgs.zbar
10
10
+
pkgs.gawk
11
11
+
];
12
12
+
text = ''
13
13
+
QR_CODE=$(zbarcam --raw --oneshot)
14
14
+
SSID=$(echo "$QR_CODE" | awk -F 'S:' '{print $2}' | awk -F ';' '{print $1}')
15
15
+
PW=$(echo "$QR_CODE" | awk -F 'P:' '{print $2}' | awk -F ';' '{print $1}')
16
16
+
nmcli dev wifi rescan
17
17
+
nmcli dev wifi connect "$SSID" password "$PW"
18
18
+
'';
19
19
+
};
20
20
+
};
21
21
+
}
+2
2configs/desktops/lib/wayland.nix
View file
Reviewed
···
92
92
# polkit agent
93
93
polkit_gnome
94
94
95
95
+
self.packages.${pkgs.system}.wifi-qr
96
96
+
95
97
# gtk3 themes
96
98
gsettings-desktop-schemas
97
99
self.packages.${pkgs.system}.otpmenu