kernel-modules: use linuxArch instead of case expression

This commit is contained in:
Daniel Barlow 2024-02-07 16:20:34 +00:00
parent 891d6e5f20
commit c9e4c1b0da

View file

@ -11,11 +11,7 @@
}:
let
writeConfig = import ../kernel/write-kconfig.nix { inherit lib writeText; };
arch = if stdenv.isMips
then "mips"
else if stdenv.isAarch64
then "arm64"
else throw "unknown arch";
arch = stdenv.hostPlatform.linuxArch;
in stdenv.mkDerivation {
name = "kernel-modules";