-
Notifications
You must be signed in to change notification settings - Fork 40
/
flake.nix
38 lines (35 loc) · 1021 Bytes
/
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
29
30
31
32
33
34
35
36
37
38
{
description = "An optional nix-based development setup";
inputs = {
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
nixpkgs.url = "nixpkgs/nixos-unstable";
dream2nix = {
url = "github:nix-community/dream2nix";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-parts.follows = "flake-parts";
# Avoid fetching large unused projects.
all-cabal-json.follows = "nixpkgs";
nix-pypi-fetcher.follows = "nixpkgs";
};
};
};
outputs = { self, nixpkgs, flake-parts, dream2nix }:
flake-parts.lib.mkFlake { inherit self; } {
systems = [ "x86_64-linux" ];
imports = [ dream2nix.flakeModuleBeta ];
perSystem = { ... }:
{
imports = [
./nix/delete-node-modules.nix
./nix/format-project.nix
./nix/prisma-language-server.nix
./nix/shell.nix
./nix/vscode.nix
];
};
};
}