I’m looking for interesting tools to automate managing packaging and configuring everything automated.

And yeah I know about NixOS but I like to distro hop and experiment so I for now know these:

  • Ansible - automating many machines, using different package names as vars and package managers.
  • Bash - the most native and compatible scripting language that can be.
  • Chezmoi - for dotfiles.

For now that’s it. I’m looking forward for your suggestions!

  • PlexSheep@infosec.pub
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    I haven’t. But having my home dir be a git repo helps a great deal. The rest I install when I need it

    • F04118F@feddit.nl
      link
      fedilink
      arrow-up
      0
      ·
      3 months ago

      chezmoi does basically that, without actually making your home dir a git repo, it just syncs it. It also supports templating and per-machine differences. Pretty cool really.

  • k4j8@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    I wrote my own program, filetailor. It’s similar to Chezmoi but uses inline comments instead of templates for machine-specific lines. This allows me to make edits directly to my local files and then sync those changes to other machines.

    I also use Ansible.

  • chameleon@fedia.io
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    My dotfiles aren’t distro-specific because they’re symlinks into a git repo (or tarball) + a homegrown shell script to make them, and that’s about the end of it.

    My NixOS configuration is split between must-have CLI tools/nice-to-have CLI tools/hardware-related CLI tools/GUI tools and functions as a suitable reference for non-Nix distros, even having a few comments on what the package names are elsewhere, but installation is ultimately still manual.

  • Auster@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    One thing I like to have with me is the AppImage version of programs when possible, since they usually work out of the box. Also helps ensuring I don’t depend on the availability of whatever package manager the system uses.

  • chrash0@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    i’ve used Chezmoi for years now pretty successfully. works on my Mac and Linux machines. it probably could be made to work on Windows. i am transitioning to NixOS, but i’ll probably keep using it anyway, since i still have Macs for work (and because they’re great laptops don’t @ me). the only real downside is that it only works for the home folder, so i have to manually control stuff for /etc, but i generally prefer user configuration for most tools anyway.

    i had messed around with Ansible for this in the past, but i didn’t really like it for this use case. it’s been a while tho so it’s hard to say why.

    not to pile on, but you might also look at GNU Stow. i decided against it, but it’s there.

    obligatory i s’pose: https://github.com/covercash2/dotfiles

    • Psyhackological@lemmy.mlOP
      link
      fedilink
      arrow-up
      0
      ·
      3 months ago

      Yeah I see everyone saying chezmoi is great.

      Ansible seems fine but also complicate many thing not doing something in bash.

      GNU Stow seems even more complication than Ansible.

      Bash seems the most simplest one.

    • data1701d (He/Him)@startrek.website
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      I’m not a Mac fan, but I do keep a Hackintosh VM with GPU passthrough to run the occasional XCode and the like or send a text message when I’m too lazy to pull out my iPhone. I will say that MacOS’s standardized interface is rather nice, though.

      • Psyhackological@lemmy.mlOP
        link
        fedilink
        arrow-up
        0
        ·
        3 months ago

        Wow, you went through hell with this Hacintosh. Interesting that you have an iPhone not Android when you use Linux.

        • data1701d (He/Him)@startrek.website
          link
          fedilink
          English
          arrow-up
          0
          ·
          3 months ago

          On one hand, I did go through heck at one point trying to get the config.plist right to no avail. I then found some guy’s preconfigured OpenCore image made specifically for virtual machines (I usually avoid such things, but as a VM is basically a standardized platform, I’ll take it), upon which my life has been very easy ever since. Passthrough was just a matter of copying my Windows passthrough scripts.

          One day, I want to buy a Google Pixel and run LineageOS, but I’m not in the position to do that right now.

  • communism@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    Most of my files are different across machines because of different themes etc. The only dotfiles I have synced across machines are my .zshrc, .gitconfig, .ideavimrc (not my actual vimrc because it has some machine-specific theming), and .p10k.zsh. I have them all in a folder synced with syncthing and then I symlink ~/.zshrc to e.g. ~/dotfiles/.zshrc.

  • hperrin@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    3 months ago

    I’ve tried to move as much as I can into Flatpak. That way I can just copy my .var folder, and all my apps are migrated.

    For other things like my configs, I use a git repo.

    • demesisx@infosec.pub
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      I do this in combination with Nix-Darwin for one of my machines. I also have some Kubernetes clusters and RISC-V machines running bare metal executables using NixOS-Anywhere and some other stuff.

  • data1701d (He/Him)@startrek.website
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    I’ll be frank - I never have, though I probably should. For me, if an application’s configuration ever annoys me enough, I just manually copy the config from a machine that I already did the config.

    One day, I may set up a shell script based on Debian’s Debootstrap that feeds it a list of packages (I think you can provide it a text file with a list of packages) to get everything set up, but that day is not today.

    • demesisx@infosec.pub
      link
      fedilink
      English
      arrow-up
      0
      ·
      3 months ago

      Perhaps you’re tired of hearing it but this is very close to exactly how NixOS works with home manager.

      • data1701d (He/Him)@startrek.website
        link
        fedilink
        English
        arrow-up
        0
        ·
        3 months ago

        Quite honestly, I almost chose NixOS over Debian a few years for that reason, but I prefer the community support of Debian. Of course, that could change, but right now, I’m not in a big distro-hopping mood nor am I sufficiently unhappy with Debian. On a side note, it kind of bothered me that you couldn’t use Nix to configure e.g the layout of your XFCE desktop. If I ever transition, maybe I’ll put in some time one summer to make that all work.

  • Thurstylark@lemm.ee
    link
    fedilink
    English
    arrow-up
    0
    ·
    3 months ago

    I use vcsh and myrepos.

    vcsh allows you to run multiple git repos that share ~ as their root, and mr simplifies/automates the management of those multiple repos. You can check out my setup here.