feat: todos, decman config almost complete
This commit is contained in:
+38
-7
@@ -2,22 +2,53 @@ import decman
|
||||
from decman.plugins import pacman
|
||||
|
||||
|
||||
class BaseModule(decman.Module):
|
||||
def __init__(self):
|
||||
class Latex(decman.Module):
|
||||
def __init__(self, user: str):
|
||||
"""Base packages that should never be uninstalled"""
|
||||
self._user = user
|
||||
super().__init__("latex")
|
||||
|
||||
@pacman.packages
|
||||
def pkgs(self) -> set[str]:
|
||||
return {
|
||||
"texlive",
|
||||
"texlive-langgerman",
|
||||
"biber",
|
||||
"perl-yaml-tiny",
|
||||
"perl-file-homedir",
|
||||
"biber",
|
||||
"python-pygments",
|
||||
"texlab",
|
||||
"texlive-basic",
|
||||
"texlive-bibtexextra",
|
||||
"texlive-binextra",
|
||||
"texlive-context",
|
||||
"texlive-fontsextra",
|
||||
"texlive-fontsrecommended",
|
||||
"texlive-fontutils",
|
||||
"texlive-formatsextra",
|
||||
"texlive-games",
|
||||
"texlive-humanities",
|
||||
"texlive-latex",
|
||||
"texlive-latexextra",
|
||||
"texlive-latexrecommended",
|
||||
"texlive-lualatex",
|
||||
"texlive-mathscience",
|
||||
"texlive-metapost",
|
||||
"texlive-music",
|
||||
"texlive-pictures",
|
||||
"texlive-plaingeneric",
|
||||
"texlive-pstricks",
|
||||
"texlive-publishers",
|
||||
"texlive-xetex",
|
||||
"texlive-langgerman",
|
||||
}
|
||||
|
||||
def on_enable(self, store: decman.Store):
|
||||
# TODO: clone the git repo
|
||||
return super().on_enable(store)
|
||||
decman.prg(
|
||||
[
|
||||
"cd",
|
||||
"~/projects/",
|
||||
"git",
|
||||
"clone",
|
||||
"https://git.janishutz.com/janishutz/latex",
|
||||
],
|
||||
user=self._user,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user