summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sys/net/interfaces.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/net/interfaces.nix b/sys/net/interfaces.nix
index 764973c..7d45ced 100644
--- a/sys/net/interfaces.nix
+++ b/sys/net/interfaces.nix
@@ -102,6 +102,13 @@ in {
wireguard.enable = true;
};
+ local.boot.impermanence.directories = optional config.networking.wireless.iwd.enable {
+ directory = "/var/lib/iwd";
+ user = "root";
+ group = "root";
+ mode = "u=rwx,g=,o=";
+ };
+
systemd.network.networks = mkIf (cfg.dhcpInterface != null) {
${cfg.dhcpInterface} = {
matchConfig.Name = cfg.dhcpInterface;