templates/basic-overlay-flake: init template

This commit is contained in:
Gabriel Arazas 2022-09-01 10:01:15 +08:00
parent 6542a0f3f4
commit 7ac5991cc4
5 changed files with 35 additions and 0 deletions

View File

@ -347,6 +347,10 @@
path = ./templates/basic-devshell; path = ./templates/basic-devshell;
description = "Basic development shell template"; description = "Basic development shell template";
}; };
basic-overlay-flake = {
path = ./templates/basic-overlay-flake;
description = "Basic overlay as a flake";
};
}; };
# No amount of formatters will make this codebase nicer but it sure does # No amount of formatters will make this codebase nicer but it sure does

View File

@ -0,0 +1,17 @@
{
description = ''
Basic flake template for an overlay with flake and traditional channels.
'';
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = inputs@{ self, nixpkgs, ... }:
let systems = inputs.flake-utils.lib.defaultSystems;
in inputs.flake-utils.lib.eachSystem systems (system: {
devShells.default =
import ./shell.nix { pkgs = import nixpkgs { inherit system; }; };
});
}

View File

@ -0,0 +1,5 @@
= Modules
:toc:
This is where various modules will go.
Preferably, it should have a hierarchy that denotes where it belongs to (e.g., `./modules/nixos/MODULE.nix`, `./modules/home-manager/MODULE2.nix`).

View File

@ -0,0 +1,4 @@
{ pkgs ? import <nixpkgs> { } }:
# Import the packages in a centralized file to make it easier for integrating.
{ }

View File

@ -0,0 +1,5 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell { packages = [ ]; }