summaryrefslogtreecommitdiff
path: root/templates/devenv/flake-parts/flake.nix
blob: 656e6e1647211fee62b4f672c7423b66e44ac5df (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
28
29
30
31
32
{
  inputs = {
    devenv.url = "github:cachix/devenv";
    my-nixpkgs.url = "github.com:qaristote/my-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 = [
        inputs.devenv.flakeModule
      ];
      systems = ["x86_64-linux" "i686-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin"];
      perSystem = {...}: {
        devenv.shells.default = {
          imports = [my-nixpkgs.devenvModules.personal];

          ######################## PUT YOUR CONFIG HERE ########################
          # for this flake
          languages.nix.enable = true;
        };
      };
    };
}