Live data from Hacker News

Why and how to add Home Manager to NixOS

drakerossman.com

1–10 of 22 posts

Re: Why and how to add Home Manager to NixOS

#4
From the linked “how to enable flakes” article:

> As you can see, it uses our ./configuration.nix as a module. What are modules again? Per NixOS wiki:

> > Modules are files combined by NixOS to produce the full system configuration. A module contains a Nix expression. It declares options for other modules to define (give a value). It processes them and defines options declared in other modules.

> Simple as.

If only.

Also, the article is very much a How not a Why.

Re: Why and how to add Home Manager to NixOS

#5
> If you happen to have a necessity for such a thing, you're better off using Home Manager, else you would end up implementing parts of Home Manager by yourself.

So if I need to do X then I should use Y, but why do I need to do X?

Maybe I'm missing it and it's really obvious.

Re: Why and how to add Home Manager to NixOS

#6
post #5

> If you happen to have a necessity for such a thing, you're better off using Home Manager, else you would end up implementing parts of Home Manager by yourself. So if I need to do X then I should use Y, but why do I need to do X? Maybe I'm missing it and it's really obvious.

User level dot files, instead of system wide

Re: Why and how to add Home Manager to NixOS

#7

From the linked “how to enable flakes” article: > As you can see, it uses our ./configuration.nix as a module. What are modules again? Per NixOS wiki: > > Modules are files combined by NixOS to produce the full system configuration. A module contains a Nix expression. It declares options for other modules to define (give a value). It processes them and defines options declared in other modules. > Simple as. If only.…

>If only.

Could you please elaborate?

Post reply on HN