diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2023-08-24 21:19:07 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2023-08-26 18:59:36 +0200 |
| commit | e467ecaea03942161ba5b09a251deb31c5b9ba53 (patch) | |
| tree | fa15267d2885721244b2e6747ca3591fe2222e70 /templates/devenv/simple/flake.nix | |
| parent | 323ca1dcf45938c9235a4f163d0d2bbcd3dab523 (diff) | |
devenv: add templates
Diffstat (limited to 'templates/devenv/simple/flake.nix')
| -rw-r--r-- | templates/devenv/simple/flake.nix | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/devenv/simple/flake.nix b/templates/devenv/simple/flake.nix new file mode 100644 index 0000000..010761d --- /dev/null +++ b/templates/devenv/simple/flake.nix @@ -0,0 +1,20 @@ +{ + inputs = { + devenv.url = "github:cachix/devenv"; + my-nixpkgs.url = "github.com:qaristote/my-nixpkgs"; + }; + + nixConfig = { + extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="; + extra-trusted-substituters = "https://devenv.cachix.org"; + }; + + outputs = {my-nixpkgs, ...} @ inputs: + my-nixpkgs.lib.mkDevenv inputs + # this function has the same arguments flake-parts' perSystem does: + # config, lib, pkgs, system, etc. + ({...}: { + # put your devenv configuration here + languages.nix.enable = true; + }); +} |
