aboutsummaryrefslogtreecommitdiff
path: root/nixos/modules/turris-omnia-support.nix
blob: 8fb8344f13ab15bbe67326032f17e3d912692e0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ config, lib, pkgs, ... }:

with lib;

{

  config = mkIf (config.turris.board == "omnia") {
    # Use early print to the serial console
    boot.kernelParams = [
      "earlyprintk" "console=ttyS0,115200"
    ];
    # Force load of Turris Omnia leds (not loadded automatically for some
    # reason).
    boot.kernelModules = [
      "leds_turris_omnia"
    ];

    # The additional administration packages
    environment.systemPackages =  with pkgs; [
      libatsha204
    ];

  };
}