-
Notifications
You must be signed in to change notification settings - Fork 172
Open
Labels
questionFurther information is requestedFurther information is requested
Description
I have not moved to flakes yet. Right now I keep my configuration.nix and hardware.nix under my home directory at ~/me/src/dotfiles. In my configuration.nix, I have set my nixPath as:
nix.nixPath = [
"nixos-config=/home/cameron/me/src/dotfiles/configuration.nix"
"nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos"
"/nix/var/nix/profiles/per-user/root/channels"
];
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:
# This will additionally add your inputs to the system's legacy channels
# Making legacy nix commands consistent as well, awesome!
nix.nixPath = ["/etc/nix/path"];
environment.etc =
lib.mapAttrs'
(name: value: {
name = "nix/path/${name}";
value.source = value.flake;
})
config.nix.registry;
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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested