hal: split aarch64 cross fixes into own file
This commit is contained in:
@@ -1,8 +1,13 @@
|
|||||||
{ config, lib, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.sane.hal.pine64-pinephone;
|
cfg = config.sane.hal.aarch64;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
options = {
|
||||||
|
sane.hal.aarch64.enable = (lib.mkEnableOption "aarch64-specific hardware support") // {
|
||||||
|
default = pkgs.system == "aarch64-linux";
|
||||||
|
};
|
||||||
|
};
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
|
||||||
# swap papers for zathura, since only one of these cross-compiles (TODO: enable cross compilation of papers!)
|
# swap papers for zathura, since only one of these cross-compiles (TODO: enable cross compilation of papers!)
|
@@ -1,6 +1,7 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./aarch64.nix
|
||||||
./pine64-pinephone
|
./pine64-pinephone
|
||||||
./samsung
|
./samsung
|
||||||
./x86_64.nix
|
./x86_64.nix
|
||||||
|
@@ -8,7 +8,6 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./cross.nix
|
|
||||||
./kernel.nix
|
./kernel.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user