nix-starter-configs icon indicating copy to clipboard operation
nix-starter-configs copied to clipboard

Where are the actual configurations supposed to live with flake?

Open pmyjavec opened this issue 1 year ago • 1 comments

When following the README, the instructions here work, but what is the relationship between creating a repo and having the configuration files inside that repo, and the traditional /etc/nixos/configuration.nix, when using flakes, are the configurations under /etc/ kind of obsolete? If so I think it might be useful to clarify.

Thanks

pmyjavec avatar Feb 09 '24 01:02 pmyjavec

The idea with flakes is to pull simply from a Git Repository instead of a folder/file on the local system such as /etc/nixos. /etc/nixos is not at all obsolete as you can simply copy your configuration from one system to another.

Note: .nix files can be activated other places than just /etc/nixos; I usually would pull my config down on to the system, then rebuild in said folder (home documents folder/home desktop folder/etc).

vincentmaule avatar Feb 16 '24 14:02 vincentmaule