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!

  • Thurstylark
    link
    fedilink
    English
    210 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.

  • @[email protected]
    link
    fedilink
    110 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.

  • @[email protected]
    link
    fedilink
    1610 months ago

    And yeah I know about NixOS but I like to distro hop and experiment

    If you know about NixOS, then you probably know this, but Nix, the package manager/the language behind NixOS, is cross-platform.

    I daily drive NixOS, but I also use Nix (and home-manager) on my Fedora music laptop, my Ubuntu home file-server, and my work Windows machine (WSL) to install and configure neovim automatically instead of copying a config, installing all the packages, and running check health over and over again until everything is set up.

    I just copy my neovim.nix file over (also other things like zsh.nix) and run home-manager switch

    You don’t have to use NixOS to take advantage of its benefits.

    • PsyhackologicalOP
      link
      fedilink
      310 months ago

      It always seemed to me like Nix package manager is not “native” enough or there are some downsides compared to dnf or apt. If that’s not the case I think I’ve got my answer.

      • @[email protected]
        link
        fedilink
        310 months ago

        From an outsider perspective (I haven’t used Nix at all), the downsides I see are that it’s extra software on top of the defaults for any given distro, it’s not optimized for the distro (meaning it might pull in dependencies that already exist or not use distro specific APIs/libs), and it doesn’t adhere to the motivations of the distro (e.g. not adhering to the DFSGs for Debian).

        And of course, most of the packages are community maintained and there’s the immutability, which might be a hinderance to some use cases, but not for me.

        All in all, not really the worst if you’re not worried about space or getting the absolute most in performance and not an ideologue, but it’s enough to make me stick with APT. I chose Debian because of its commitment to FOSS, not the stability nor performance.

  • data1701d (He/Him)
    link
    fedilink
    English
    210 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.

    • @[email protected]
      link
      fedilink
      English
      910 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)
        link
        fedilink
        English
        210 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.

  • @[email protected]
    link
    fedilink
    810 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

    • PsyhackologicalOP
      link
      fedilink
      210 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)
      link
      fedilink
      English
      210 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.

      • PsyhackologicalOP
        link
        fedilink
        110 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)
          link
          fedilink
          English
          210 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.

            • data1701d (He/Him)
              link
              fedilink
              English
              110 months ago

              For the GPU passthrough, I reused what I did for Windows 10. After that, I think you have to add a few QEMU flags in the Virt Manager XML (have to find them), but after that, you just download an OpenCore ISO from https://github.com/thenickdude/KVM-Opencore and it pretty much just works (except for audio, which is something I’m working ob. I got a Pulse server running on MacOS once and forwarded it to my Linux sound server over the virtual network, but I haven’t been able to replicate that.) Every few months, they’ll update it with the latest OpenCore.

  • @[email protected]
    link
    fedilink
    110 months ago

    I have a Linux setup script that downloads a bunch of config files and sets them up. I also have backups of my zshrc and other configs, and that helps a ton too. I have a Linux scripts repo on GitHub where I toss all my Linux scripts and that’s quite helpful too.

      • @[email protected]
        link
        fedilink
        1
        edit-2
        10 months ago

        Nope. I’m more of a dev than a sysadmin these days, pretty much always have been, so I never bothered learning something like Ansible or Puppet or Chef etc. A couple Bash scripts can get me nearly entirely set up so it’s all I ever really needed.

  • @[email protected]
    link
    fedilink
    410 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.

  • @[email protected]
    link
    fedilink
    710 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

    • @[email protected]
      link
      fedilink
      810 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.

  • @[email protected]
    link
    fedilink
    210 months ago

    I use SaltStack to automate my servers. Just feels better than Ansible to me.
    For my PC and laptop I don’t do anything, I haven’t hopped distribution since I started using Tumbleweed a few years ago.

      • @[email protected]
        link
        fedilink
        210 months ago

        The clear cut of state data, pillar data and formulae feels more intuitive to me than Ansible’s playbook organization.

        • PsyhackologicalOP
          link
          fedilink
          110 months ago

          For person using only Ansible I don’t know what are you talking about. 😆

          • @[email protected]
            link
            fedilink
            210 months ago

            ansible claims to be lots of things it’s not. It’s supposed to be idempotent. It’s not, you can execute arbitrary scripts. You don’t need an agent on the machines… but it might just decide to stop supporting your version of python one day. It’s okayish for setting up some machines, but absolutely sucks for maintaining them.