mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-16 03:32:02 +03:00
c1acf97334
Since the initial implementation I learned enough to know where it was slighly wrong. I think this fixes most of the slight wrongness.
25 lines
408 B
Nix
25 lines
408 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.mobile.hardware.socs;
|
|
in
|
|
{
|
|
options.mobile = {
|
|
hardware.socs.rockchip-op1.enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
description = "enable when SOC is RK3399-OP1";
|
|
};
|
|
};
|
|
|
|
config = mkMerge [
|
|
{
|
|
mobile = mkIf cfg.rockchip-op1.enable {
|
|
system.system = "aarch64-linux";
|
|
};
|
|
}
|
|
];
|
|
}
|