summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-03-21 22:57:19 -0400
committerseth <[email protected]>2023-03-21 22:57:19 -0400
commitf5681326f3c01e52cbf6cbc625224c1a95f8fe17 (patch)
tree5045cd9178eb789a6549118585828a350353d5a0 /flake.nix
parenta97b232e631242e8fa951c8c862270dc6a57f5cd (diff)
add config for turret (openwrt router)
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
index 6715c5f..e811bf6 100644
--- a/flake.nix
+++ b/flake.nix
@@ -38,6 +38,10 @@
};
nixos-hardware.url = "github:NixOS/nixos-hardware";
nur.url = "github:nix-community/NUR";
+ openwrt-imagebuilder = {
+ url = "github:astro/nix-openwrt-imagebuilder";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
pre-commit-hooks = {
url = "github:cachix/pre-commit-hooks.nix";
inputs.nixpkgs.follows = "nixpkgsUnstable";
@@ -51,6 +55,7 @@
self,
nixpkgs,
flake-utils,
+ openwrt-imagebuilder,
pre-commit-hooks,
...
}: let
@@ -99,5 +104,7 @@
})
// {
nixosConfigurations = mapHosts hosts;
+
+ packages.x86_64-linux.turret = nixpkgs.legacyPackages.x86_64-linux.callPackage ./hosts/turret {inherit openwrt-imagebuilder;};
};
}