fix: add missing packages

This commit is contained in:
Patryk Hegenberg 2024-12-27 19:07:22 +01:00
parent 4063a91bc4
commit 1fa3dea1b9
4 changed files with 50 additions and 49 deletions

View file

@ -32,6 +32,10 @@ headless = [
"pipx",
"golang",
"rustup",
"latexmk",
"luarocks",
"cliphist",
"neovim",
]
non_headless = [
@ -60,10 +64,10 @@ non_headless = [
"waybar",
"xdg-desktop-portal-hyprland",
"zathura",
"zathura-mu-pdf",
"zathura-pdf-mupdf",
"zoom",
"zotero",
"android-studio"
"android-studio",
]
[special_packages]
@ -72,25 +76,17 @@ go = [
"github.com/stefanlogue/meteor",
"golang.org/x/tools/gopls",
"github.com/go-delve/delve/cmd/dlv",
"github.com/air-verse/air"
"github.com/air-verse/air",
]
cargo = [
"git-cliff",
"bottom",
"typst-cli",
]
cargo = ["git-cliff", "bottom", "typst-cli"]
pipx = [
# "harlequin",
# "posting",
# "euporie",
]
pipx = ["harlequin", "posting", "euporie"]
[flatpak]
enable = false
enable = true
remotes = [
{ name = "flathub", url = "https://flathub.org/repo/flathub.flatpakrepo" }
{ name = "flathub", url = "https://flathub.org/repo/flathub.flatpakrepo" },
]
packages = [
"com.spotify.Client",
@ -99,8 +95,9 @@ packages = [
"com.google.AndroidStudio",
"io.freetubeapp.FreeTube",
"com.discordapp.Discord",
"com.nextcloud.desktopclient.nextcloud",
]
[dotfiles]
enable = false
git_repo = "https://github.com/username/dotfiles.git"
enable = true
git_repo = "https://codeberg.org/Pata1704/dotfiles.git"

View file

@ -25,6 +25,7 @@ func setupDotfiles(config DotfilesConfig) error {
dotfilesDir := filepath.Join(os.Getenv("HOME"), "dotfiles")
cmd := exec.Command("git", "clone", config.GitRepo)
// cmd := exec.Command("git", "clone", config.GitRepo, dotfilesDir)
if err := cmd.Run(); err != nil {
return fmt.Errorf("Fehler beim Klonen der Dotfiles: %v", err)
}

View file

@ -90,6 +90,7 @@ func (m model) Init() tea.Cmd {
}
func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
tea.EnterAltScreen()
switch msg := msg.(type) {
case tea.WindowSizeMsg:
m.width, m.height = msg.Width, msg.Height

View file

@ -110,8 +110,10 @@ func (m specialSoftwareModel) installItemCmd(item string) tea.Cmd {
}
case "rust":
if _, err := exec.LookPath("rustc"); err == nil {
if _, err := exec.LookPath("cargo"); err == nil {
return installedItemMsg(item)
}
}
rustupCommand := "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -q -y"
if err := installPackage(rustupCommand, "", ""); err != nil {
log.Printf("Fehler beim Installieren von Rust: %v", err)