This repo contains several non-flakes examples (one per branch):
This repository serves as an example Dendritic Nix implementation without flakes nor flake-parts. (discourse post and context)
Entry point is default.nix, modules/example.nix defines a nixosConfiguration.
This example uses unflake to fetch dependencies and provide flake-like inputs.
Regenerate unflake.nix whenever inputs.nix change:
nix-shell https://ln-s.sh/unflake -A unflake-shell --run unflakeBuild my-laptop nixos config:
nixos-rebuild build --file . --attr nixosConfigurations.my-laptopalternatively:
nix-build --attr nixosConfigurations.my-laptop.config.system.build.toplevel