aboutsummaryrefslogtreecommitdiffstats
path: root/modules/file-management/ouch/default.nix
blob: 01a865ab99732bc8d0ca0fda0c9842ca9b10d63c (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
# Ouch! - 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 ];
  };
}