1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-09 10:31:06 +01:00

parallel: package nullable

This commit is contained in:
Xaver Wenhart 2025-12-03 19:36:40 +01:00 committed by Austin Horstman
parent af324afa72
commit fca4cba863

View file

@ -20,7 +20,7 @@ in
options.programs.parallel = {
enable = mkEnableOption "GNU Parallel";
package = lib.mkPackageOption pkgs "parallel-full" { };
package = lib.mkPackageOption pkgs "parallel-full" { nullable = true; };
will-cite = mkOption {
type = types.bool;
@ -33,7 +33,7 @@ in
config = mkIf cfg.enable {
home = {
packages = [ cfg.package ];
packages = lib.mkIf (cfg.package != null) [ cfg.package ];
file.".parallel/will-cite" = mkIf cfg.will-cite {
text = "generated by home manager (programs.parallel.will-cite)";
};