aboutsummaryrefslogtreecommitdiff
path: root/nixos/modules/turris-board.nix
blob: c9ab44ae7ab2a62a81caf40464a401d3e277d851 (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
25
{ config, lib, pkgs, ... }:

with lib;

{

  options = {
    turris.board = mkOption {
      type = types.enum [ "omnia" "mox" ];
      description = "The unique Turris board identifier.";
    };
  };

  config = {
    assertions = [{
      assertion = config.turris.board != null;
      message = "Turris board has to be specified";
    }];

    environment.systemPackages =  with pkgs; [
      # The Git is required to access this repository
      git
    ];
  };
}