diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2023-09-17 18:39:06 +0200 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2023-09-17 18:39:06 +0200 |
| commit | 7f5f01ef3d3eb56a24db31b7ddf85fc4ce3b37fc (patch) | |
| tree | fc4fe69f286ec24b25c15b1795756bfd7cca12a1 /flake.nix | |
| parent | f5ffcc09b782d286e658a5599443bbe711df6281 (diff) | |
flake: add devenv
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 33 |
1 files changed, 28 insertions, 5 deletions
@@ -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; + }; + }; + }; + }; +} |
