frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Migrating from GNU Stow to Chezmoi

https://rednafi.com/misc/chezmoi/
23•speckx•1h ago

Comments

lucideer•1h ago
I must've tried to set up stow five or six times over the years, in between various hand rolled custom setups. I can't put my finger on why but I set up chez moi & it's been my setup since, much longer than any previous solution.

Chez moi is definitely not without its rough edges but it seems to have gotten the subtle essentials right enough for adhd me to not have abandoned it yet.

guhcampos•1h ago
I used stow for a long time, then tried Ansible, but eventually settled into good old Make.

`make dotfiles` just creates a bunch of symlinks, takes 5 minutes, all good and happy. Everything is modular, declarative, simple. Never looked back.

sureglymop•58m ago
Same here. I would say chezmoi has almost a bit too many features. If one is into yak shaving there is a lot to explore. It's only a negative for me because I forget half of them everytime I read the docs. But I can hardly blame it for that, it's great!
linhns•41m ago
I nearly jumped from GNU Stow, but settled when I find the —-no-folding flag
drdexebtjl•49m ago
I had similar problems with GNU Stow, but switched to Nix and Home Manager instead.

I think Chezmoi's templates and file naming conventions don't click for me, but it's nice to see a good variety in this problem space.

colordrops•31m ago
People shy from Nix because of supposed complexity but it really is the only real solution to this sort of problem. It's not really that much more difficult to learn, and in fact if you are willing, AI works really well generating nix config.
chungy•27m ago
Guix solves the same problem in similar ways, though it uses Scheme as its configuration language.
drdexebtjl•20m ago
Sadly it doesn't work on macOS, unlike Nix.
pkulak•18m ago
Or hardware.
bkummel•10m ago
I didn't even know that managing dotfiles was a "problem space".
rochak•47m ago
I've been using [yadm](https://yadm.io/) instead which works really well!
spudlyo•46m ago
It's great to manage your dotfiles, but I took it a step farther. I rebuilt the minimal Linux desktop environment of my dreams (startx, xinit, i3, i3status etc) with Ansible. It begins from a vanilla Ubuntu server 24.04.4 install. I bootstrapped it using a KVM + spice setup (using a spare physical SSD rather than a virtual one) and iterating over and over again until I finally got everything mostly working. I then booted off that physical disk, and kept iterating until everything was perfect. I've since adapted the setup to work on virtual aarch64 on macOS. I just recently tuned it to work on a crappy old Haswell Dell laptop, now properly detecting and configuring hardware vaapi capabilities, backlight, battery, trackpad, trackpoint, etc.

Pretty snazzy, watching YouTube in Firefox on a 13 year old laptop with hardware h264 decode and everything tuned exactly to my liking.

anuramat•30m ago
don't want to be that guy, but have you tried nix?
spudlyo•13m ago
I tried GUIX a few times, but ultimately I couldn't quite get it working exactly the way I wanted it to work. I also didn't like the ugly filesystem layout that the store requires. I may get over it and revisit at some point. It will be a lot of work, but on the plus side I'll have a reason to learn scheme.
mmh0000•42m ago
I’ve always managed this problem in a different way. I don’t know if my way is better, but it works really well for me.

I treat my powerful desktop computer as my main machine. Then I have a bunch of laptops.

Then I just rsync my entire home directory out to all the laptops.

From there. The rule is quite simple. Any file created on a laptop are considered ephemeral. If I create data that I have to keep. It gets rsynced back the other direction to the main machine.

This process has served me well for at least 15 years now and is supported by a small handful of shell scripts to automate this process

shevy-java•36m ago
Interesting. I go about this differently. I have one master setting and from there ruby just autogenerates anything I'd ever need on other computers. If ruby is unavailable then I just copy the generated files. But I only edit the master setting to enable what I need.

> This process has served me well for at least 15 years now and is supported by a small handful of shell scripts to automate this process

I feel in a similar way but not with shell scripts. Ruby autogenerates them if I need them too. Ruby is my ultimate glue to hold together everything.

arrakeen•40m ago
i feel like using GNU stow to manage your dotfiles has always been a hack.. has it ever been a supported usecase?

stow is an indispensable tool for me to manage /usr/local for manually installed software. my workflow goes:

  ./configure --prefix=/usr/local/stow/myapp
  make && make install
  stow myapp
now, myapp and all its supporting files are in the right place in /usr/local. if i want to "uninstall", i just run

  stow -D myapp
shevy-java•38m ago
I hate . dirs. In fact, I hate them so much that I don't use them.

My configuration lives primarily in .yml files. These are kept super-simple. When need be and another format is required, ruby autogenerates these for me. For instance, all my bash aliases are kept in .yml files which then get turned into bash rc files or any other target format for other shells. Same for most of my other configuration too - not always .yml but usually some text file. I never understood the neet for .foobar directories or files. They just hide a system that is intrinsically ugly and needlessly complicated.

QwenGlazer9000•27m ago
Chezmoi strikes a nice balance between the overkill of home-manager while still being more powerful than simpler solutions.

Yadm is another alternative, the main thing I don't like about it though is that I'm not a fan of cross OS dotfiles. Having niri files on my work Mac and aerospace dotfiles on Linux annoys me quite a bit.

As powerful as the templating in chezmoi is, I think it should be considered a last resort and only used for simple files. They break your editor features like highlighting.

pkulak•18m ago
Once you hit the Chezmoi stage, you're only about 6 months from Nix and Home Manager. I mean, why climb _almost_ to the top of a mountain and then just sit down?

WhatsApp for Windows WebView2 inefficiencies and performance issues

https://www.windowslatest.com/2026/06/13/whatsapp-is-eating-1-2gb-ram-on-windows-11-even-as-micro...
1•alok-g•59s ago•0 comments

Physical AI lab automation investment thesis

https://skydeckconnect.com/telescope-innovations-telif
1•hairoglyphics•2m ago•0 comments

The Stock Manipulator's Sneaky Math to Beat Chaos [video]

https://www.youtube.com/watch?v=-jF9gW2r_bk
1•CGMthrowaway•5m ago•0 comments

Getting over the Nebulosity of Agents

https://text-incubation.com/getting-over-the-nebulosity-of-agents?1
1•krrishd•6m ago•0 comments

IP Crawl: Exposing the Open Webcam Crisis

https://alec.is/posts/ip-crawl-exposing-the-massive-open-webcam-crisis/
1•arm32•6m ago•0 comments

Show HN: A website to understand and study AI papers

https://intuitivepapers.ai/
1•skzv•8m ago•0 comments

'Popa' Botnet Linked to Publicly-Traded Israeli Firm

https://krebsonsecurity.com/2026/06/popa-botnet-linked-to-publicly-traded-israeli-firm/
2•gpi•8m ago•0 comments

Show HN: Agirails – Two AI agents negotiated and settled USDC payment over email

https://www.agirails.io/cases/email-escrow/
1•dmujic•8m ago•0 comments

Global Leyline Simulator

https://maps.leylines.net
1•nephihaha•10m ago•1 comments

Show HN: Maiweb – a personalized feed of the public web

https://maiweb.up.railway.app/
1•rcanand2025•11m ago•0 comments

Just Co-Locate Data in Postgres

https://www.dbos.dev/blog/co-locating-workflow-state-with-your-data
1•KraftyOne•12m ago•0 comments

I Play Video Games with Spinal Muscular Atrophy

https://www.openassistivetech.org/how-i-actually-play-video-games-with-sma-the-tools-i-use-every-...
2•dannyobrien•13m ago•1 comments

A Deadly Outbreak of Plague

https://www.nytimes.com/2026/06/17/science/oldest-plague-siberian-skeletons.html
1•janandonly•13m ago•0 comments

Pulsar satellite reveals immense scale of GPS signal tampering

https://www.space.com/space-exploration/satellites/its-quite-a-bit-more-than-we-expected-satellit...
1•gm678•14m ago•0 comments

Prompt Library: Collection of prompts for developers to use with AI tools

https://github.com/IntuitDeveloper/Prompt-Library
2•giancarlostoro•15m ago•1 comments

Pentagon Plan to Track Aircraft from Orbit Accelerated with New $4B SpaceX Deal

https://www.twz.com/space/pentagons-plans-to-track-aircraft-from-orbit-accelerated-with-new-4b-sp...
1•toomuchtodo•15m ago•0 comments

Show HN: OpenRuna–graph-linked prompts,MCP servers and agent skills

https://www.openruna.com/best/ai-coding-prompts
1•dcnl1980•16m ago•0 comments

2025 Progress of Global Climate Change

https://climatechangetracker.org/global
1•a2x•16m ago•1 comments

Linux users face a Microsoft Secure Boot headache – here's the painkiller

https://www.zdnet.com/article/aspirin-for-linuxs-microsofts-secure-boot-headache/
1•CrankyBear•17m ago•0 comments

Reading the Digital Safety Act with My Mastodon Admin Hat On

https://fossacademic.tech//2026/06/11/reading-digital-safety-act.html
1•speckx•17m ago•0 comments

A Walking Tour of Surveillance Infrastructure in San Francisco

https://www.foglinesf.com/p/a-walking-tour-of-surveillance-infrastructure-in-san-francisco
1•littlexsparkee•19m ago•0 comments

AI took my job as a translator. I'm starting over at 39 [video]

https://www.youtube.com/watch?v=OovTIngZtCY
3•mmarian•21m ago•0 comments

Ossature can now catch code that compiles but is wrong

https://ossature.dev/blog/code-compiles-but-is-wrong/
1•beshrkayali•21m ago•0 comments

Show HN: Skill Studio – mine, edit, and manage Agent Skills

https://github.com/AltrinaAI/skill-studio
1•harveyhu•22m ago•0 comments

Spotlight on the Shingles Vaccine–Again

https://erictopol.substack.com/p/spotlight-on-the-shingles-vaccineagain
1•paulpauper•24m ago•0 comments

A Maybe Type for C++

https://lzon.ca/posts/tips/cpp-maybe-type/
1•jpmitchell•24m ago•0 comments

The Moonshot

https://writing.antonleicht.me/p/the-moonshot
1•paulpauper•24m ago•0 comments

Dave Baszucki on Roblox, Teen Entrepreneurs, and the Future of Play (Ep. 280)

https://conversationswithtyler.com/episodes/dave-baszucki/
1•paulpauper•24m ago•0 comments

Robust External Hash Aggregation in the Solid State Age (2024)

https://duckdb.org/library/robust-external-hash-aggregation/
1•tosh•25m ago•0 comments

Tons of Loctite adhesive used in Sagrada Familia's central towers

https://www.henkel.com/press-and-media/press-releases-and-kits/2026-06-17-henkel-technology-suppo...
6•melenaboija•25m ago•0 comments