aboutsummaryrefslogtreecommitdiff
path: root/modules/firmware/default.nix
blob: c13d39922f1c59fe1f0eb53055236c519007df98 (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, pkgs, lib, ... }:
with builtins // lib;
let
  cfg = config.firmware;
in {
  options.firmware = {
    date = mkOption {
      type = types.str;
    };
    version = mkOption {
      type = types.str;
    };
    hash = mkOption {
      type = types.str;
    };

    package = mkOption {
      type = types.package;
      default = pkgs.kobo-firmware {
        inherit (config.device) hardware;
        inherit (cfg) date version hash;
      };
    };
  };
}