summaryrefslogtreecommitdiff
path: root/ext/openwrt.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-06-30 09:56:30 -0400
committerseth <[email protected]>2024-06-30 10:23:04 -0400
commit088facf700946cb8f2d96c6089185bdc2a67180a (patch)
treec5b4e4cffbb3ee4ad2498c2251892bd457e9d3c7 /ext/openwrt.nix
parent5d3045a0769af3a94fba7b5cf646e8498aaef595 (diff)
alejandra -> nixfmt-rfc-style
Diffstat (limited to 'ext/openwrt.nix')
-rw-r--r--ext/openwrt.nix25
1 files changed, 14 insertions, 11 deletions
diff --git a/ext/openwrt.nix b/ext/openwrt.nix
index f02f8ef..8b39358 100644
--- a/ext/openwrt.nix
+++ b/ext/openwrt.nix
@@ -3,30 +3,33 @@
inputs,
withSystem,
...
-}: let
- pkgs = withSystem "x86_64-linux" ({pkgs, ...}: pkgs);
+}:
+let
+ pkgs = withSystem "x86_64-linux" ({ pkgs, ... }: pkgs);
- profileFromRelease = release:
- (inputs.openwrt-imagebuilder.lib.profiles {
- inherit pkgs release;
- })
- .identifyProfile;
+ profileFromRelease =
+ release: (inputs.openwrt-imagebuilder.lib.profiles { inherit pkgs release; }).identifyProfile;
- mkImage = {profile, ...} @ args:
+ mkImage =
+ { profile, ... }@args:
inputs.openwrt-imagebuilder.lib.build (
profileFromRelease args.release profile
- // builtins.removeAttrs args ["profile" "release"]
+ // builtins.removeAttrs args [
+ "profile"
+ "release"
+ ]
);
mapImages = lib.mapAttrs (lib.const mkImage);
-in {
+in
+{
flake.legacyPackages.x86_64-linux = {
openWrtImages = mapImages {
turret = {
release = "23.05.0";
profile = "netgear_wac104";
- files = pkgs.runCommand "image-files" {} ''
+ files = pkgs.runCommand "image-files" { } ''
mkdir -p $out/etc/uci-defaults
cat > $out/etc/uci-defaults/99-custom << EOF