Example Dendritic Nix setup implemented without flakes nor flake-parts. dendrix.oeiuwq.com/Dendritic.html#no-dependencies
nix unflake dendritic

Sponsor Vic Dendritic Nix License CI Status

This repo contains several non-flakes examples (one per branch):

Dendritic unflake#

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.

Usage#

Regenerate unflake.nix whenever inputs.nix change:

nix-shell https://ln-s.sh/unflake -A unflake-shell --run unflake

Build my-laptop nixos config:

nixos-rebuild build --file . --attr nixosConfigurations.my-laptop

alternatively:

nix-build --attr nixosConfigurations.my-laptop.config.system.build.toplevel