-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
28 lines (26 loc) · 1.06 KB
/
flake.nix
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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05"; # or use /nixos-unstable to get latest packages, but maybe less caching
systems.url = "github:nix-systems/default"; # (i) allows overriding systems easily, see https://github.com/nix-systems/nix-systems#consumer-usage
devenv.url = "github:cachix/devenv";
};
outputs = { self, nixpkgs, devenv, systems, flake-parts, ... } @ inputs: (
flake-parts.lib.mkFlake { inherit inputs; } {
systems = (import systems);
imports = [
inputs.devenv.flakeModule
];
perSystem = { config, self', inputs', pkgs, system, ... }: # perSystem docs: https://flake.parts/module-arguments.html#persystem-module-parameters
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devenv.shells.default = (import ./devenv.nix { inherit pkgs inputs; });
};
}
);
nixConfig = {
extra-substituters = [ "https://devenv.cachix.org" ];
extra-trusted-public-keys = [ "devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw=" ];
};
}