mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 19:51:34 +01:00
wlan: Actually remove old networks
This commit is contained in:
parent
c315c7f66e
commit
7edd02884e
1 changed files with 4 additions and 3 deletions
|
|
@ -35,8 +35,9 @@ in
|
||||||
})
|
})
|
||||||
|> lib.listToAttrs;
|
|> lib.listToAttrs;
|
||||||
|
|
||||||
systemd.tmpfiles.rules =
|
systemd.services.iwd.preStart = ''
|
||||||
cfg.networks
|
rm --force /var/lib/iwd/*.{psk,8021x}
|
||||||
|> lib.map (name: "C /var/lib/iwd/${name} - - - - ${config.sops.secrets."iwd/${name}".path}");
|
install -m 600 /run/secrets/iwd/* /var/lib/iwd
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue