add base flake template

This commit is contained in:
Dmitriy Pleshevskiy 2022-08-31 23:20:14 +03:00
commit 6d09d02062
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215
3 changed files with 28 additions and 0 deletions

1
base-flake/.envrc Normal file
View file

@ -0,0 +1 @@
use flake

16
base-flake/flake.nix Normal file
View file

@ -0,0 +1,16 @@
{
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixpkgs-unstable;
utils.url = github:numtide/flake-utils;
};
outputs = { self, nixpkgs, utils }:
utils.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShells.default = { };
});
}

11
flake.nix Normal file
View file

@ -0,0 +1,11 @@
{
description = "My personal templates";
outputs = { self }: {
templates = {
path = ./base-flake;
description = "An empty flake for each default system";
};
defaultTemplate = self.templates.base-flake;
};
}