flake.nix: throw on unsupported system type

This commit is contained in:
Alexander Sosedkin 2021-12-16 23:29:59 +01:00
parent e81bd1ae37
commit cf5364dc55

View file

@ -27,16 +27,19 @@
lib.nixOnDroidConfiguration = lib.nixOnDroidConfiguration =
{ config { config
, system ? "aarch64-linux" # unused , system ? "aarch64-linux" # unused, only supported variant
, extraModules ? [ ] , extraModules ? [ ]
, extraSpecialArgs ? { } , extraSpecialArgs ? { }
, pkgs ? pkgs' , pkgs ? pkgs'
, home-manager-path ? home-manager.outPath , home-manager-path ? home-manager.outPath
}: }:
import ./modules { if system != "aarch64-linux" then
inherit config extraModules extraSpecialArgs home-manager-path pkgs; throw "aarch64-linux is the only currently supported system type"
isFlake = true; else
}; import ./modules {
inherit config extraModules extraSpecialArgs home-manager-path pkgs;
isFlake = true;
};
apps.nix-on-droid.aarch64-linux = app; apps.nix-on-droid.aarch64-linux = app;
defaultApp.aarch64-linux = app; defaultApp.aarch64-linux = app;
}; };