How can I use a nix configuration when not using Nixos?

Viewed 1480

So I've installed Nix on Arch linux and I'm able to run nix-env -i example, however how can I define a Nix configuration?

As I don't have any /nixos/configuration.nix file present.

Is this possible?


My goal here is to be able to define a configuration which I could then use something like nixos-rebuild switch to install and provision all the software.

2 Answers
Related