hal: split aarch64 cross fixes into own file

This commit is contained in:
2024-09-23 02:08:48 +00:00
parent b53581eef3
commit ff9a86041b
3 changed files with 8 additions and 3 deletions

View File

@@ -1,8 +1,13 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:
let
cfg = config.sane.hal.pine64-pinephone;
cfg = config.sane.hal.aarch64;
in
{
options = {
sane.hal.aarch64.enable = (lib.mkEnableOption "aarch64-specific hardware support") // {
default = pkgs.system == "aarch64-linux";
};
};
config = lib.mkIf cfg.enable {
# swap papers for zathura, since only one of these cross-compiles (TODO: enable cross compilation of papers!)

View File

@@ -1,6 +1,7 @@
{ ... }:
{
imports = [
./aarch64.nix
./pine64-pinephone
./samsung
./x86_64.nix

View File

@@ -8,7 +8,6 @@ in
};
imports = [
./cross.nix
./kernel.nix
];