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:
parent
af324afa72
commit
fca4cba863
1 changed files with 2 additions and 2 deletions
|
|
@ -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)";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue