feat: updates to make it work

This commit is contained in:
2026-06-14 20:42:49 +02:00
parent dce3c77a29
commit fab293438e
26 changed files with 163 additions and 101 deletions
+9 -15
View File
@@ -1,11 +1,12 @@
import decman
from decman.plugins import pacman
import config
class Latex(decman.Module):
def __init__(self, user: str):
def __init__(self):
"""Base packages that should never be uninstalled"""
self._user = user
super().__init__("latex")
@pacman.packages
@@ -29,7 +30,7 @@ class Latex(decman.Module):
"texlive-latex",
"texlive-latexextra",
"texlive-latexrecommended",
"texlive-lualatex",
"texlive-luatex",
"texlive-mathscience",
"texlive-metapost",
"texlive-music",
@@ -41,16 +42,9 @@ class Latex(decman.Module):
"texlive-langgerman",
}
def on_enable(self, store: decman.Store):
out = decman.prg(["cd ~/projects/latex/"], user=self._user)
if out == "":
decman.prg(
[
"cd",
"~/projects/",
"git",
"clone",
"https://git.janishutz.com/janishutz/latex",
],
user=self._user,
def files(self) -> dict[str, decman.File]:
return {
f"/home/{config.user}.indentconfig.yaml": decman.File(
source_file="./linters/indentconfig.yaml"
)
}