19 lines
431 B
Nix
19 lines
431 B
Nix
|
|
{
|
||
|
|
lib,
|
||
|
|
config,
|
||
|
|
...
|
||
|
|
}:
|
||
|
|
with lib; let
|
||
|
|
cfg = config.mySystem.hardware.pinetab2;
|
||
|
|
in {
|
||
|
|
options.mySystem.hardware.pinetab2.enable = mkEnableOption "Activate support for the PineTab2";
|
||
|
|
config = {
|
||
|
|
boot.kernelParams = ["console=tty0" "console=ttyS2,1500000n8" "rootwait" "root=LABEL=NIXOS_SD" "rw"];
|
||
|
|
hardware.sensor.iio.enable = true;
|
||
|
|
services.avahi = {
|
||
|
|
enable = true;
|
||
|
|
openFirewall = true;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
}
|