Better HN
topnewbestaskshowjobs
Log inSign up

dlyons

93 karma · joined Apr 15, 2022 (4y ago) · 42 submissions

Hack the planet.
Submissions

comment 3y ago · link · parent

Yes, it is really great! I haven't had to run homebrew in forever; Nix + home-manager does it as part of my overall config. I've configured home-manager to both install and update homebrew packages.

Did you know you can even install Mac App Store apps?

Here are the relevant bits where my config does it: https://github.com/dustinlyons/nixos-config/blob/main/macos/...

comment 3y ago · link · parent

Yeah, I agree with this. For the lay person it's not going to work for backup, you need something else to checkpoint the files. Versions, ZFS snapshots (what I do), git, bash scripts + Backblaze, whatever. Lots of people don't want to mess with this, which is what Dropbox used to solve for. Now you're constantly barraged with whatever new methods they are experimenting with to monetize. But we know that, so I regress.

For those who don't mind a little extra work (I argue Backblaze is almost no work using their Web UI), syncthing is a really great solution.

comment 3y ago · link · parent

I've never seen these warnings, and I just checked their homepage:

"Run it on your desktop computers and synchronize them with your server for backup."

comment 3y ago · link · parent

I do the same thing and have bash scripts that run on my server to ingest data I find useful. I use org-roam and org-daily to keep a journal in Emacs, and text from across the web or my life just arrives that is important for that day.

Examples: my likes on Twitter, highlights on the web (highlight something, right click "Import to Readwise", it downloads into Emacs via syncthing), calendar events, etc. I'm always collecting stuff that I can reference later without much effort after the initial setup. It just works.

comment 3y ago · link · parent

Having a third machine in the mix is pretty great, I can move from my office upstairs to my laptop downstairs and pick up right where I left off. Sharing Nix configuration between the two machines means that is always in sync too.

comment 3y ago · link · parent

It keeps multiple copies of your data on whatever machine is running syncthing. So if you lose data on one machine, it's still safe on another.

Sure if all machines go at once, you're screwed. But I'm not too worried about that, personally. If you have something you absolutely can't lose just stick it in a Backblaze bucket and use syncthing for the rest.

Backblaze is cheap and has both an API and web interface.

comment 3y ago · link · parent

You don't host it. It just talks to each of your machines peer-to-peer. Just run it on each machine and it works like magic.

comment 3y ago · link · parent

Syncthing. It's amazing. I use it across my NixOS workstation, M1 Macbook, home lab server (acting as an "always on" folder to always fetch syncs), and my Steam Deck.

If you use Nix it's really easy to setup: https://github.com/dustinlyons/nixos-config/blob/main/nixos/...

comment 4y ago · link · parent

Sitting in Louisville, KY hacking away on some Python and Typescript this morning. AMA.

comment 4y ago · link · parent

Nix makes my dev life on MacOS so much more manageable. The "dirty" feeling has, for the most part, gone away. I'm also able to easily share common config between other machines I use.

Here's my Nix setup for my M1 Macbook using nix-darwin, if it helps anyone: https://github.com/dustinlyons/nixos-config

comment 4y ago · link · parent

Yes, and they recently enabled one time emails with your own custom domain, which really helps get around folks trying to identify and prevent this.

This is a killer feature, I love Fastmail.

12