-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrap your dotfiles with nix #10
Comments
@adrian-gierakowski that's a great idea, I still don't consider myself a Nix pro so don't want to break anything for others. |
What I had in mind was a home-manager configuration with all the programs and their configs. I’ll be willing to pair on this as I’m fairly experienced with nix and I’m keen to learn about some of the tools you’ve got here. |
@adrian-gierakowski Hello, i'm using nixos and home-manager for about 2 months. My current problem with the It'll be nice if anyone can explain how can i use home-manager inside nixos without needing to re-use it on every place to avoid maintaing dotfiles twice. |
You can use home-manager on any distro. But it only makes sense if IMHO if you are also using nix\HM on those distros to manage what software is installed. The benefit of this is that you not only ensure that the app configs are the same across those systems, but that the apps\binaries themselves are also the same. You can obviously use stow on NixOS if you don’t want to use HM everywhere, but you are just making more work for yourself IMHO |
@rafaeloledo may I ask what you’d want to avoid using nix\HM everywhere? IMHO it’s the only sane solution if you want to keep things in sync across multiple systems |
@adrian-gierakowski Since i don't want to depend strategically only on chace.nixos.org, i try to avoid keeping 100% of my workflow on it. It's a personal choice considering i'm not a source-and-compile user. I'm not saying the cache is not solid or anything, i just don't want to be in a state of awareness and keep concerns on my head on the current state of fundings. Just pick a strategy and forget it. I saw that i can set a private cache in a local server on the wiki, i'm consindering doing this on future to resolve this dilemma. For now, stow's solution doesn't lock you on a binary provider. Other solution that |
You can use home.file for arbitrary files which can be sourced from current dir in a git repo and will be copied to nix store and then symlinked to chosen path in your home dir. If you use this exclusively you can manage your dotfiles without accidentally “polluting” them with nix store paths. Although you’d be foregoing all the best parts of home manager so maybe better to just use stow instead (note that I know nothing about stow) |
I think it's a good balance. Creating another abstraction layer inside home-manager API is not a good selling point for me. Using Thanks. Note: @omerxx is using at commit |
@adrian-gierakowski So, i've reached this discussion: It appears that Simply, i've followed the example above and use this internal home-manager's function |
so that people could reproducibly instantiate it on their system with a single command
The text was updated successfully, but these errors were encountered: