1
1
forked from extern/flakelight

Add basic flake template

This commit is contained in:
Archit Gupta 2023-08-27 15:39:11 -07:00
parent ba7f68e4e2
commit b27680288c
4 changed files with 25 additions and 4 deletions

View File

@ -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
View File

@ -0,0 +1 @@
use flake

11
templates/basic/flake.nix Normal file
View 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
View 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."; };
}