summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
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;
+ };
+ };
+ };
+ };
+}