aboutsummaryrefslogtreecommitdiffstats
path: root/modules/file-management/ouch/default.nix
blob: 461e3cfb26d78b055adbb758faa8439ad53f686b (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
26
27
# CLI tool for compressing and decompressing various formats
{
  config,
  lib,
  pkgs,
  ...
}:
let
  cfg = config.file-management.ouch;
in
{
  options.file-management.ouch = {
    enable = lib.mkEnableOption "Enables ouch.";
    package = lib.mkOption {
      type = lib.types.package;
      default = pkgs.ouch.override {
        enableUnfree = true;
      };
      defaultText = lib.literalExpression "pkgs.ouch.override { enableUnfree = true; }";
      description = "The Ouch package to use, with unRAR support enabled.";
    };
  };

  config = lib.mkIf cfg.enable {
    home.packages = [ cfg.package ];
  };
}