aboutsummaryrefslogtreecommitdiffstats
path: root/modules/file-management/ouch/default.nix
blob: c8986fe8a3d1d398ce8a15ec34737304c492d99f (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
# CLI tool for compressing and decompressing various formats
{
  pkgs,
  lib,
  config,
  ...
}:
{
  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 config.file-management.ouch.enable {
    home.packages = [ config.file-management.ouch.package ];
  };
}