summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2023-08-24 21:19:07 +0200
committerquentin@aristote.fr <quentin@aristote.fr>2023-08-26 18:59:36 +0200
commite467ecaea03942161ba5b09a251deb31c5b9ba53 (patch)
treefa15267d2885721244b2e6747ca3591fe2222e70 /lib
parent323ca1dcf45938c9235a4f163d0d2bbcd3dab523 (diff)
devenv: add templates
Diffstat (limited to 'lib')
-rw-r--r--lib/default.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/default.nix b/lib/default.nix
new file mode 100644
index 0000000..40758eb
--- /dev/null
+++ b/lib/default.nix
@@ -0,0 +1,19 @@
+{
+ mkDevenv = {
+ devenv,
+ flake-parts,
+ my-nixpkgs,
+ ...
+ } @ inputs: config:
+ flake-parts.lib.mkFlake {inherit inputs;} {
+ imports = [devenv.flakeModule];
+ systems = ["x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
+ perSystem = {...} @ perSystemInputs: {
+ devenv.shells.default =
+ {
+ imports = [my-nixpkgs.devenvModules.personal];
+ }
+ // config perSystemInputs;
+ };
+ };
+}