From cf5364dc557ffa66550fcbab29ddbb0c782717f4 Mon Sep 17 00:00:00 2001 From: Alexander Sosedkin Date: Thu, 16 Dec 2021 23:29:59 +0100 Subject: [PATCH] flake.nix: throw on unsupported system type --- flake.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 36f55d0..443e35b 100644 --- a/flake.nix +++ b/flake.nix @@ -27,16 +27,19 @@ lib.nixOnDroidConfiguration = { config - , system ? "aarch64-linux" # unused + , system ? "aarch64-linux" # unused, only supported variant , extraModules ? [ ] , extraSpecialArgs ? { } , pkgs ? pkgs' , home-manager-path ? home-manager.outPath }: - import ./modules { - inherit config extraModules extraSpecialArgs home-manager-path pkgs; - isFlake = true; - }; + if system != "aarch64-linux" then + throw "aarch64-linux is the only currently supported system type" + else + import ./modules { + inherit config extraModules extraSpecialArgs home-manager-path pkgs; + isFlake = true; + }; apps.nix-on-droid.aarch64-linux = app; defaultApp.aarch64-linux = app; };