profile/latex: init from legacy

This commit is contained in:
Felix Buehler 2023-02-13 21:24:21 +01:00
parent 5bd3f8de0a
commit 1fe6a7bcc0
4 changed files with 21 additions and 10 deletions

View file

@ -1,10 +0,0 @@
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
biber
pdfpc
qtikz
texlive.combined.scheme-full
texstudio
];
}

View file

@ -6,6 +6,7 @@ in
{ {
my.profiles = { my.profiles = {
android.enable = true; android.enable = true;
latex.enable = true;
printing.enable = true; printing.enable = true;
}; };
} }

View file

@ -3,6 +3,7 @@
{ {
imports = [ imports = [
./android ./android
./latex
./printing ./printing
]; ];
} }

View file

@ -0,0 +1,19 @@
{ config, lib, pkgs, ... }:
let
cfg = config.my.profiles.latex;
in
{
options.my.profiles.latex = with lib; {
enable = mkEnableOption "latex profile";
};
config = lib.mkIf cfg.enable {
environment.systemPackages = with pkgs; [
biber
pdfpc
qtikz
texlive.combined.scheme-full
texstudio
];
};
}