Desktop/NetworkManager: migrate secrets to sops-nix
This commit is contained in:
parent
1d1b76b329
commit
8c6fdd5b51
2 changed files with 8 additions and 7 deletions
|
|
@ -5,8 +5,9 @@
|
|||
}: let
|
||||
tailscaleName = config.services.tailscale.interfaceName;
|
||||
in {
|
||||
age.secrets = {
|
||||
wifiPasswords.file = "${flakeSelf.inputs.secrets}/wifi-passwords.age";
|
||||
sops.secrets.wifiPasswords = {
|
||||
sopsFile = "${flakeSelf.inputs.secrets}/wifi-passwords.env";
|
||||
format = "dotenv";
|
||||
};
|
||||
networking.networkmanager = {
|
||||
enable = true;
|
||||
|
|
@ -14,7 +15,7 @@ in {
|
|||
"interface-name:${tailscaleName}"
|
||||
];
|
||||
ensureProfiles = {
|
||||
environmentFiles = [config.age.secrets.wifiPasswords.path];
|
||||
environmentFiles = [config.sops.secrets.wifiPasswords.path];
|
||||
profiles = {
|
||||
"4g-modem" = {
|
||||
connection = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue