diff options
| author | seth <[email protected]> | 2023-05-08 13:55:00 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-05-08 13:55:00 -0400 |
| commit | e9ac656f9886205fce36f9d7502676826d126e4b (patch) | |
| tree | 172c20b44d592c69da29df50a81764b13f18a1f7 /hosts/default.nix | |
| parent | 06e93b863432d1ed980f9c181eac9295ed5e24a0 (diff) | |
turret: only package for x86_64-linux
Diffstat (limited to 'hosts/default.nix')
| -rw-r--r-- | hosts/default.nix | 17 |
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;}; - }; }; } |
