From f5681326f3c01e52cbf6cbc625224c1a95f8fe17 Mon Sep 17 00:00:00 2001 From: seth Date: Tue, 21 Mar 2023 22:57:19 -0400 Subject: add config for turret (openwrt router) --- flake.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'flake.nix') 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;}; }; } -- cgit v1.2.3