summaryrefslogtreecommitdiff
path: root/templates/devenv/flake-parts/flake.nix
blob: deca3e541c213547e6e2458d158408b8d9579fe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
  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 = with my-nixpkgs.flakeModules; [personal devenv];
      perSystem = {...}: {
        devenv.shells.default = {
          ######################## PUT YOUR CONFIG HERE ########################
          languages.nix.enable = true;
        };
      };
    };
}