Get support for sagikazarmark/nix-templates
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
sagikazarmark/nix-templates
My Nix flake templates
This repository contains a list of project templates to be used with the nix flake init
command.
Usage
If you like any of the templates in this repository, you can easily start a new project from them with the one of the following commands:
# Initialize in the current directory
nix flake init --template github:sagikazarmark/nix-templates#TEMPLATE
# Create a new directory
nix flake new --template github:sagikazarmark/nix-templates#TEMPLATE NEW_PROJECT
Templates
Template | Description |
---|---|
base | A basic project template |
base-dev | A basic project template targeted at development |
base-kube | A basic project template with Kubernetes tools |
go-library | A Go library template |
go-service | A Go service template |
go-simple-cli | A simple Go CLI template |
Development
Creating a new template
Use the base
template to scaffold a new template:
nix flake new --template .#base NEW_TEMPLATE
Add the template to the list above.
Updating templates
Some of the components need updating from time to time. This section describes the steps to do that.
Upgrade nix-direnv
All templates come with a nix-direnv initialization in .envrc
to make sure the generated projects are self-contained.
This makes projects usable without installing nix-direnv on the machine manually.
The nix-direnv version in .envrc
is pinned, so it needs updating from time to time.
Run the following command to update nix-direnv to a specific version:
update-envrc 2.1.2
Review the changes then commit, push and open a PR.
Credits
Check out the Official Nix templates for more examples.
Kudos to @lucperkins for creating The Nix Way. These template are inspired by his dev templates.
License
The project is licensed under the MIT License.
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2