summaryrefslogtreecommitdiff
path: root/sys/net/interfaces.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2026-04-02 23:32:28 -0600
committerAlejandro Soto <alejandro@34project.org>2026-04-02 23:33:02 -0600
commitee0b5f7edfe9fba65f9749f65377c4f519c7fc0a (patch)
tree5531ffd8445c642e41f49bbc6333adbf252c1baf /sys/net/interfaces.nix
parent399da96059c2b7a8a3ca66896d069d1234f80294 (diff)
sys: prepare impermanence declarations in advance of [lustrated]'s transition
Diffstat (limited to 'sys/net/interfaces.nix')
-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;