Modules/LaTeX: Rename to docs
This commit is contained in:
@ -5,11 +5,11 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (config.modules) latex;
|
inherit (config.modules) docs;
|
||||||
in {
|
in {
|
||||||
options.modules.latex = import ./options.nix {inherit lib mylib;};
|
options.modules.latex = import ./options.nix {inherit lib mylib;};
|
||||||
|
|
||||||
config = lib.mkIf latex.enable {
|
config = lib.mkIf docs.enable {
|
||||||
home = {
|
home = {
|
||||||
packages = with pkgs; [
|
packages = with pkgs; [
|
||||||
texliveFull
|
texliveFull
|
9
home/modules/docs/options.nix
Normal file
9
home/modules/docs/options.nix
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
lib,
|
||||||
|
mylib,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
with lib;
|
||||||
|
with mylib.modules; {
|
||||||
|
enable = mkEnableOption "Enable Document Support (e.g. LaTeX)";
|
||||||
|
}
|
@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
lib,
|
|
||||||
mylib,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
with lib;
|
|
||||||
with mylib.modules; {
|
|
||||||
enable = mkEnableOption "Enable LaTeX";
|
|
||||||
}
|
|
Reference in New Issue
Block a user