mirror of
https://github.com/nix-community/home-manager
synced 2024-11-01 00:39:45 +01:00
texlive: add option programs.texlive.package
This read-only option will hold a reference to the customized texlive package.
This commit is contained in:
parent
bc50202d0d
commit
46a94cce56
1 changed files with 9 additions and 4 deletions
|
@ -22,13 +22,18 @@ in
|
||||||
'';
|
'';
|
||||||
description = "Extra packages available to Texlive.";
|
description = "Extra packages available to Texlive.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
package = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
description = "Resulting customized Texlive package.";
|
||||||
|
readOnly = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [
|
home.packages = [ cfg.package ];
|
||||||
(pkgs.texlive.combine (cfg.extraPackages pkgs.texlive))
|
programs.texlive.package =
|
||||||
];
|
pkgs.texlive.combine (cfg.extraPackages pkgs.texlive);
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue