mirror of
https://github.com/nix-community/flakelight.git
synced 2024-11-28 18:33:18 +01:00
Add basic flake template
This commit is contained in:
parent
ba7f68e4e2
commit
b27680288c
@ -5,8 +5,9 @@
|
|||||||
{
|
{
|
||||||
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
|
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||||
outputs = inputs:
|
outputs = inputs:
|
||||||
let
|
let flakelight = import ./. inputs; in
|
||||||
flakelight = import ./. inputs;
|
flakelight ./. {
|
||||||
in
|
outputs = flakelight;
|
||||||
flakelight ./. { outputs = flakelight; };
|
templates = import ./templates;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
1
templates/basic/.envrc
Normal file
1
templates/basic/.envrc
Normal file
@ -0,0 +1 @@
|
|||||||
|
use flake
|
11
templates/basic/flake.nix
Normal file
11
templates/basic/flake.nix
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||||
|
flakelight.url = "github:accelbread/flakelight";
|
||||||
|
};
|
||||||
|
outputs = { flakelight, ... }@inputs:
|
||||||
|
flakelight ./. {
|
||||||
|
inherit inputs;
|
||||||
|
devShell.packages = pkgs: with pkgs; [ hello ];
|
||||||
|
};
|
||||||
|
}
|
8
templates/default.nix
Normal file
8
templates/default.nix
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
# flakelight -- Framework for simplifying flake setup
|
||||||
|
# Copyright (C) 2023 Archit Gupta <archit@accelbread.com>
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
rec {
|
||||||
|
default = basic;
|
||||||
|
basic = { path = ./basic; description = "Minimal Flakelight flake."; };
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user