nixos-config/collect-network-connections.sh

11 lines
317 B
Bash
Raw Normal View History

2019-10-24 02:20:38 +02:00
#!/usr/bin/env bash
# collect all network configurations and save them in the store
sudo ls /etc/NetworkManager/system-connections \
| while read file
do
2019-11-07 15:43:11 +01:00
sudo cat "/etc/NetworkManager/system-connections/$file" \
| pass insert -m "krops/desktop_secrets/network-manager/system-connections/$file"
2019-10-24 02:20:38 +02:00
done