what is it?

boiler plate code for flakes

a flake can declare templates through its templates output attribute. a template has two attributes:

  • description: a one-line description of the template, in commonmark syntax.
  • path: the path of the directory to be copied.
  • welcometext: a block of markdown text to display when a user initializes a new flake based on this template.

initialization

to initialize a flake from a gitlab repository. if this is a devenv flake template, remember to add the trusted user

nix flake init --template gitlab:Jacobus-afk/flake-templates#python

the format is nix flake init --template <gitlab/github>:<repo owner>/<repo name>#<template name>