mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01: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;
|
||||
|
||||
systemd.tmpfiles.rules =
|
||||
cfg.networks
|
||||
|> lib.map (name: "C /var/lib/iwd/${name} - - - - ${config.sops.secrets."iwd/${name}".path}");
|
||||
systemd.services.iwd.preStart = ''
|
||||
rm --force /var/lib/iwd/*.{psk,8021x}
|
||||
install -m 600 /run/secrets/iwd/* /var/lib/iwd
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue