logoalt Hacker News

tfrancislyesterday at 7:40 PM1 replyview on HN

If you like home manager but also like to understand how your "home"/user programs are configured, take a look at hjem!


Replies

drdexebtjlyesterday at 8:53 PM

Last time I looked, it only worked with NixOS.

I don't understand what makes it more understandable than Home Manager, though.

If you look at the source of a Home Manager `programs.foo` module, it should look mostly like this:

  home.packages = [ cfg.package ];
  xdg.configFile."foo/config.yaml".source = yamlFormat.generate "config.yaml" cfg.settings;
Which is pretty much exactly the same syntax you get with Hjem, but with more optional features. So you could just write that instead whenever you want full control :)
show 1 reply