-
Notifications
You must be signed in to change notification settings - Fork 110
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
What do I change if I want to have my configuration in my home directory instead of /etc? #66
Comments
Hey @ckp95, apologies for the late response! The For example, When using flakes, you usually want to move away from channels, as they're effectively replaced with flake inputs. The nix path angle bracket look up is still useful, though, as sometimes you want to evaluate non-flake nix files, which will still use the angle bracket syntax to lookup stuff (mostly In this template, we point This lets you use the exact inputs you have locked in your flake with the "legacy" angle brackets (global nix path) syntax. The
When building your system with flakes, you will specify the path to your config with |
In practice, the only angled bracket lookup that's actually useful outside of your config is |
I have not moved to flakes yet. Right now I keep my
configuration.nix
andhardware.nix
under my home directory at~/me/src/dotfiles
. In myconfiguration.nix
, I have set mynixPath
as:so when I run
sudo nixos-rebuild switch
it uses the config there rather than looking in/etc/nixos
. (I don't know what the channels-related ones are actually doing, I just kept them there from the original config)I want to keep this directory layout in a flake-based config. I notice in the template, this section:
What is this
/etc/nix/path
doing? I don't currently have such a directory. Will it be created automatically? And do I need to add my dotfiles directory to this list?The text was updated successfully, but these errors were encountered: