An unofficial, read-only Hacker News reader.

AI made self-hosting fun again (opens external site)

1151 points by jlelse 2 days ago | janlukas.blog | 543 comments on HN

View full thread · View on Hacker News

Comment thread (17)

  1. I have AI craft make files for common operations, patching, deploys etc. The makefiles compose terraform, ansible, misc scripts, DB migrations etc. this way, something reproducible and tested can be "trusted" to let AI operate with without it getting carried away or deep into the weeds on simple shit. Of course, I also use the same makefiles too when I want, and it's just great. Keeps credentials safe-ish, AI doesn't need to SSH itself or even know about the actual systems.
    Replies (3)
    1. If only nixos existed and llms were good at it :)
      Replies (2)
      1. I'm just way more comfortable and used to traditional bare metal, kvm, and k8s via RKE2.
      2. gentoo is far superior in every way :)
        Replies (3)
        1. Are they comparable, though?
          Replies (1)
          1. Not really no. I tend to think everyone should be building their entire stack from source these days. I don't know why these distros with binaries pre-compiled are so popular these days when an LLM can fork it for you at any time. Especially among the Nix crowd. Like why would you want someone else to compile your software? I mean this seriously. Between you and bare metal there's really not that much. Linux kernel? 20 minute compile. Grub2, OpenRC / Systemd / sddm, kde or hyprland w/e, the browser is actually the thing that will take the longest to build. So do it. There's no excuses anymore. You can do it while you sleep.
            Replies (3)
            1. But why?
            2. Mhm chromium? Llvm? Clickhouse? Some stuff takes hours even to clone lol. Why waste time and electricity if you can use cache
            3. Frankly, even downloading source code should be avoided. The best way is to recreate the project code from individual LLM prompts sent to your model of choice (preferably local).

              Continue this thread (1 replies) →

        2. I use windows, btw
        3. Is it reproduicable though? Can you run nixos-anywhere <host>, then ssh into into it run borg restore and you have same server as you backuped? Doubts
          Replies (1)
          1. Gentoo ebuilds are the original byte for byte immutable build architecture. Have an LLM explain it to you.
            Replies (1)
            1. Never in the history of anything has there been a bigger misunderstanding of the capabilities of both NixOS and Gentoo.
    2. LLMs that write and then update your Ansible really is the super combo.

      If you throw in tests that the LLM also writes and it brings together the best of DevOps and LLM.

      Replies (1)
      1. How do you reliably test ansible? I've been vibing ansible deployments at work instead of letting LLMs free roam on servers, but the deployment frequently works only on second or third try. The only way to do testing that I see is run a VM with a replica of the entire infra, which is infeasible for large or mixed legacy deployments...
    3. Allow me to throw in mise-en-place (mise.sh).

      As someone who always loved to do organize projects with Make, mise was an easy upsell for me.