summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2023-09-17 18:39:06 +0200
committerquentin@aristote.fr <quentin@aristote.fr>2023-09-17 18:39:06 +0200
commit7f5f01ef3d3eb56a24db31b7ddf85fc4ce3b37fc (patch)
treefc4fe69f286ec24b25c15b1795756bfd7cca12a1 /flake.nix
parentf5ffcc09b782d286e658a5599443bbe711df6281 (diff)
flake: add devenv
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix33
1 files changed, 28 insertions, 5 deletions
diff --git a/flake.nix b/flake.nix
index 024f56d..2a38ab0 100644
--- a/flake.nix
+++ b/flake.nix
@@ -1,9 +1,32 @@
{
description = "Quentin Aristote's personal information.";
- outputs = { self, nixpkgs, flake-utils }:
- flake-utils.lib.eachDefaultSystem (system:
- let pkgs = nixpkgs.legacyPackages.${system};
- in { formatWith = markup: import ./default.nix { inherit markup pkgs; }; });
-}
+ inputs = {
+ devenv.url = "github:cachix/devenv";
+ my-nixpkgs.url = "github:qaristote/my-nixpkgs";
+ nixpkgs = {};
+ };
+
+ nixConfig = {
+ extra-trusted-public-keys = "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=";
+ extra-trusted-substituters = "https://devenv.cachix.org";
+ };
+ outputs = {
+ flake-parts,
+ my-nixpkgs,
+ ...
+ } @ inputs:
+ flake-parts.lib.mkFlake {inherit inputs;} {
+ imports = builtins.attrValues {inherit (my-nixpkgs.flakeModules) personal devenv;};
+ flake.lib.formatWith = attrs: import ./default.nix attrs;
+ perSystem = {
+ devenv.shells.default = {
+ languages.nix = {
+ enable = true;
+ packaging.enable = true;
+ };
+ };
+ };
+ };
+}