added some flake templates.
This commit is contained in:
parent
9068858ee4
commit
fac5efd7b2
17 changed files with 448 additions and 0 deletions
1
templates/default/.envrc
Normal file
1
templates/default/.envrc
Normal file
|
@ -0,0 +1 @@
|
|||
use flake
|
1
templates/default/.gitignore
vendored
Normal file
1
templates/default/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.direnv
|
24
templates/default/flake.nix
Normal file
24
templates/default/flake.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
description = "A very basic flake";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
flake-utils,
|
||||
}:
|
||||
flake-utils.lib.eachDefaultSystem (system: let
|
||||
pkgs = import nixpkgs {inherit system;};
|
||||
in
|
||||
with pkgs; {
|
||||
devShells.default = mkShell {
|
||||
buildInputs = [
|
||||
just
|
||||
];
|
||||
};
|
||||
});
|
||||
}
|
2
templates/default/justfile
Normal file
2
templates/default/justfile
Normal file
|
@ -0,0 +1,2 @@
|
|||
default:
|
||||
just --list
|
Loading…
Add table
Add a link
Reference in a new issue