nixos-config/configs/flake-parts/templates.nix
Gabriel Arazas e4ad727c56
flake.nix: configure output with flake-parts
I've seen how Nixvim project is managed and flake-parts is pretty good from
a glance and indeed it is.
2024-01-15 22:06:12 +08:00

23 lines
695 B
Nix

# Cookiecutter templates for your mama.
{ inputs, ... }: {
flake.templates = {
default = inputs.self.templates.basic-devshell;
basic-devshell = {
path = ../templates/basic-devshell;
description = "Basic development shell template";
};
basic-overlay-flake = {
path = ../templates/basic-overlay-flake;
description = "Basic overlay as a flake";
};
sample-nixos-template = {
path = ../templates/sample-nixos-template;
description = "Simple sample Nix flake with NixOS and home-manager";
};
local-ruby-nix = {
path = ../templates/local-ruby-nix;
description = "Local Ruby app development with ruby-nix";
};
};
}