mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 15:11: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" ];
|
restartUnits = [ "iwd.service" ];
|
||||||
});
|
});
|
||||||
|
|
||||||
systemd.services.iwd.preStart = ''
|
systemd.services.iwd = {
|
||||||
rm --force /var/lib/iwd/*.{psk,8021x}
|
preStart = "install -m 600 /run/secrets/iwd/* /var/lib/iwd";
|
||||||
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