Skip to content

Commit

Permalink
Shorten exporters name
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjm committed Sep 20, 2024
1 parent e83dae2 commit 616a3c1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions modules/exporters/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ with lib;

{
options = {
exporters.nbconvert-exporters = {
exporters.nbconvert = {
enable = mkOption {
type = types.bool;
default = false;
Expand All @@ -27,9 +27,9 @@ with lib;
};
};

config = mkIf config.exporters.nbconvert-exporters.enable {
builtExporters.nbconvert-exporters = config.pkgs.callPackage ./nbconvert.nix {
texliveScheme = config.pkgs.texlive.combined.${config.exporters.nbconvert-exporters.texliveScheme};
config = mkIf config.exporters.nbconvert.enable {
builtExporters.nbconvert = config.pkgs.callPackage ./nbconvert.nix {
texliveScheme = config.pkgs.texlive.combined.${config.exporters.nbconvert.texliveScheme};
};
};
}
4 changes: 2 additions & 2 deletions sample_environments/exporters-full.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
}:

codedown.makeEnvironment {
exporters.nbconvert-exporters.enable = true;
exporters.nbconvert-exporters.texliveScheme = "scheme-full";
exporters.nbconvert.enable = true;
exporters.nbconvert.texliveScheme = "scheme-full";
}
2 changes: 1 addition & 1 deletion sample_environments/exporters-small.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
}:

codedown.makeEnvironment {
exporters.nbconvert-exporters.enable = true;
exporters.nbconvert.enable = true;
}
4 changes: 2 additions & 2 deletions sample_environments/mega.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ codedown.makeEnvironment {
shells.fish.enable = true;
shells.zsh.enable = true;

exporters.nbconvert-exporters.enable = true;
exporters.nbconvert-exporters.texliveScheme = "scheme-full";
exporters.nbconvert.enable = true;
exporters.nbconvert.texliveScheme = "scheme-full";

labeledPackages = [
{ channel = "nixpkgs"; attr = "htop"; contents = channels.nixpkgs.htop; }
Expand Down

0 comments on commit 616a3c1

Please sign in to comment.