nixos-config/collect-network-connections.sh
Ingolf Wagner 54bab918d7
init
2019-10-24 02:24:33 +02:00

10 lines
299 B
Bash

#!/usr/bin/env bash
# collect all network configurations and save them in the store
sudo ls /etc/NetworkManager/system-connections \
| while read file
do
sudo cat /etc/NetworkManager/system-connections/$file \
| pass insert -m desktop/network-manager/system-connections/$file
done