• 1 Post
  • 71 Comments
Joined 2 years ago
cake
Cake day: June 20th, 2023

help-circle


  • BytertoSelfhosted@lemmy.worldWhat are your Homelab goals for 2025?
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    21 days ago

    On the topic of build times, it took me too long to learn that nixos-rebuild supports remote build workers and targets.

    For example, if I am editing on my laptop, want to build on my desktop, and apply the build to my file server, then I’d run…

    me@laptop$ nixos-rebuild test \
    --flake ~/wherever-it-lives \
    --build-host desktop \
    --target-host file-server \
    --use-remote-sudo
    

    The host names should match the name of the nixosConfiguration output from your flake. If they don’t I think you can specify like, --target-host .#some-machine

    Remote sudo avoids having to SSH as root.

    Bonus tip: Having Tailscale on every machine makes this work reliably from anywhere, network speed as the limit.













  • You can’t build a box that will survive long without your help. You’re maintaining a living system, not a sculpture. It needs someone at the wheel making decisions. Updates will have breaking changes. Tokens and certificates will expire. Eventually hardware will fail.

    The best you can do is provide an easy way to export the important data into a digestible format for your loved ones to manage with the skills they have. If that means pushing it into a managed service owned by Big Tech, so be it. You don’t want to tacitly hurt them for their lack of interest in self-hosting.



  • I came into Emacs (only a year ago) with Vim experience as well, and it was a difficult transition for the reasons you describe, but I persisted due to the beauty and power of the rest of Emacs’ design and ecosystem.

    I try to use the default bindings whenever possible, as I find going against the grain in Emacs leads to less efficiencies as packages stop cooperating with me or each other. Evil-mode is often criticized for this reason. It clobbers other bindings.

    Understand that the default editing functions work best for lisps and their sexps. You will likely need to find third party packages to get that fluid feeling back for non-lisps. (Or implement them yourself!)

    Check out

    • change-inner which uses expand-region
    • Maybe even the heavy-handed evil-mode. (But if you do, I’d recommend considering Meow as a less-invasive alternative)
    • wgrep combined with the replace- commands really impressed me.