aboutsummaryrefslogtreecommitdiff
path: root/modules/installer.nix
blob: f5c93ba6eef345dd5ce4d1265dd7a6e4a4e30330 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ config, pkgs, lib, ... }:
with builtins // lib;
let
  cfg = config.installer;
in {
  imports = [
    ./kobo.nix
  ];

  options.installer = {
    package = mkPackageOption pkgs [ "kobo" "install" ] // {
      apply = x: x.override {
        koboLabel = cfg.koboLabel;
      };
    };

    koboLabel = mkOption {
      type = types.str;
      default = "KOBOeReader";
      description = "The label of the Kobo eReader mount target";
    };
  };
}