1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-27 01:44:41 +03:00
mobile-nixos/modules/hardware-generic.nix
Samuel Dionne-Riel c1acf97334 system-target: reviews implementation
Since the initial implementation I learned enough to know where it was
slighly wrong. I think this fixes most of the slight wrongness.
2019-09-19 15:31:26 -04:00

21 lines
381 B
Nix

{ config, lib, pkgs, ... }:
with lib;
let
cfg = config.mobile.hardware.socs;
in
{
options.mobile = {
hardware.socs.generic-x86_64.enable = mkOption {
type = types.bool;
default = false;
description = "Enable when system is a generic x86_64";
};
};
config = {
mobile.system.system = lib.mkIf cfg.generic-x86_64.enable "x86_64-linux";
};
}