summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2023-05-08 13:55:00 -0400
committerseth <[email protected]>2023-05-08 13:55:00 -0400
commite9ac656f9886205fce36f9d7502676826d126e4b (patch)
tree172c20b44d592c69da29df50a81764b13f18a1f7
parent06e93b863432d1ed980f9c181eac9295ed5e24a0 (diff)
turret: only package for x86_64-linux
-rw-r--r--hosts/default.nix17
1 files changed, 8 insertions, 9 deletions
diff --git a/hosts/default.nix b/hosts/default.nix
index ef269e1..4cd0381 100644
--- a/hosts/default.nix
+++ b/hosts/default.nix
@@ -1,6 +1,7 @@
{
inputs,
self,
+ withSystem,
...
}: let
inherit (import ./profiles.nix {inherit inputs self;}) personal server;
@@ -77,17 +78,15 @@ in {
};
nixosModules.getchoo = import ../modules/nixos;
+
+ # openwrt-imagebuilder seems to only work
+ # on x64
+ packages.x86_64-linux.turret =
+ withSystem "x86_64-linux"
+ (s: s.pkgs.callPackage ./turret {inherit (inputs) openwrt-imagebuilder;});
};
- perSystem = {
- pkgs,
- system,
- ...
- }: {
+ perSystem = {system, ...}: {
apps = (inputs.nixinate.nixinate.${system} self).nixinate;
-
- packages = {
- turret = pkgs.callPackage ./turret {inherit (inputs) openwrt-imagebuilder;};
- };
};
}