{ # Exposes one flake template that scaffolds a tiny dev-shell-based flake. description = "A minimal flake template example"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; }; outputs = { nixpkgs, ... }: let system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; }; in { templates.default = { path = ./template; description = "Scaffold a tiny flake with one dev shell."; }; checks.${system}.template-files = pkgs.runCommand "template-files-check" { } '' cp ${./template/flake.nix} ./flake.nix cp ${./template/README.md} ./README.md grep -q 'devShells\..*default' ./flake.nix grep -q 'nix develop' ./README.md echo ok > "$out" ''; }; }