mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
wlan: Cleanup previous network files after iwd stops instead of before it starts
This commit is contained in:
parent
358e78f6a4
commit
6be0aa5064
1 changed files with 4 additions and 4 deletions
|
|
@ -35,9 +35,9 @@ in
|
|||
restartUnits = [ "iwd.service" ];
|
||||
});
|
||||
|
||||
systemd.services.iwd.preStart = ''
|
||||
rm --force /var/lib/iwd/*.{psk,8021x}
|
||||
install -m 600 /run/secrets/iwd/* /var/lib/iwd
|
||||
'';
|
||||
systemd.services.iwd = {
|
||||
preStart = "install -m 600 /run/secrets/iwd/* /var/lib/iwd";
|
||||
postStop = "rm --force /var/lib/iwd/*.{psk,8021x}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue