mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
flake.nix: throw on unsupported system type
This commit is contained in:
parent
e81bd1ae37
commit
cf5364dc55
1 changed files with 8 additions and 5 deletions
|
|
@ -27,12 +27,15 @@
|
||||||
|
|
||||||
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
|
||||||
}:
|
}:
|
||||||
|
if system != "aarch64-linux" then
|
||||||
|
throw "aarch64-linux is the only currently supported system type"
|
||||||
|
else
|
||||||
import ./modules {
|
import ./modules {
|
||||||
inherit config extraModules extraSpecialArgs home-manager-path pkgs;
|
inherit config extraModules extraSpecialArgs home-manager-path pkgs;
|
||||||
isFlake = true;
|
isFlake = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue