1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-04 16:11:06 +01:00
home-manager/modules/programs/parallel.nix
2025-12-02 01:44:57 +01:00

42 lines
813 B
Nix

{
config,
lib,
pkgs,
...
}:
let
inherit (lib)
mkIf
mkEnableOption
mkOption
types
;
cfg = config.programs.parallel;
in
{
meta.maintainers = [ lib.maintainers.xavwe ];
options.programs.parallel = {
enable = mkEnableOption "GNU Parallel";
package = lib.mkPackageOption pkgs "parallel-full" { };
will-cite = mkOption {
type = types.bool;
default = false;
description = ''
Accept GNU Parallels citation policy: <https://www.gnu.org/software/parallel/parallel_design.html#citation-notice>
'';
};
};
config = mkIf cfg.enable {
home = {
packages = [ cfg.package ];
file.".parallel/will-cite" = mkIf cfg.will-cite {
text = "generated by home manager (programs.parallel.will-cite)";
};
};
};
}