WIP: hostapd with vlan works on laptop

This commit is contained in:
steveej 2023-12-24 20:01:20 +01:00
parent 55ce0f0be1
commit b7e2ec02e3
7 changed files with 334 additions and 202 deletions

View file

@ -19,9 +19,10 @@
nixos-nftables-firewall.url = "github:thelegy/nixos-nftables-firewall";
nixos-nftables-firewall.inputs.nixpkgs.follows = "nixpkgs";
};
# outputs = _: {};
hostapd.url = "git://w1.fi/hostap.git?branch=main";
hostapd.flake = false;
};
outputs = {
self,
@ -32,6 +33,7 @@
} @ attrs: let
system = "aarch64-linux";
nodeName = "router0-dmz0";
pkgs = nixpkgs.legacyPackages.${system};
mkNixosConfiguration = {extraModules ? [], ...} @ attrs:
nixpkgs.lib.nixosSystem (
@ -67,6 +69,7 @@
linuxPackages_bpir3
;
})
];
}
]
@ -88,5 +91,12 @@
];
};
};
packages = {
hostapd_main = pkgs.hostapd.overrideDerivation(attrs: {
src = self.inputs.hostapd;
version = self.inputs.hostapd.rev;
});
};
};
}