Fix Wi-Fi config generation

Actually the first thing I did, but last commit because...
why do I bother again?
This commit is contained in:
Geoffrey Frogeye 2023-12-16 17:08:29 +01:00
parent a6f706d088
commit 417ef5a746
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -1,4 +1,6 @@
#!/usr/bin/env python3
#!/usr/bin/env nix-shell
#! nix-shell -i python3
#! nix-shell -p python3 python3Packages.pyaml
"""
Exports Wi-Fi networks configuration stored in pass into a format readable by Nix.
@ -19,7 +21,7 @@ import yaml
# passpy doesn't handle encoding properly, so doing this with calls
PASSWORD_STORE = os.path.expanduser("~/.password-store")
PASSWORD_STORE = os.path.expanduser("~/.local/share/pass")
SUBFOLDER = "wifi"
SEPARATE_PASSWORDS = False
# TODO Find a way to make then env file available at whatever time it is needed