-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
89 lines (82 loc) · 2.59 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
description = "dotfiles";
inputs = {
crane.url = "github:ipetkov/crane";
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
flake-parts.url = "github:hercules-ci/flake-parts";
ghciwatch-compat = {
url = "github:evanrelf/ghciwatch-compat";
inputs.nixpkgs.follows = "nixpkgs";
};
haskell-overlay.url = "github:evanrelf/haskell-overlay";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
kakoune = {
url = "github:mawww/kakoune";
flake = false;
};
nixpkgs.url = "github:NixOS/nixpkgs";
roc = {
url = "github:roc-lang/roc";
inputs.flake-compat.follows = "flake-compat";
inputs.nixpkgs.follows = "nixpkgs";
};
roc2nix = {
url = "github:JRMurr/roc2nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.roc.follows = "roc";
};
systems.url = "github:nix-systems/default";
zig-overlay = {
url = "github:mitchellh/zig-overlay";
inputs.flake-compat.follows = "flake-compat";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = import inputs.systems;
perSystem = { config, inputs', pkgs, system, ... }: {
_module.args.pkgs =
import inputs.nixpkgs {
localSystem = system;
config = { };
overlays = [
(_: _: { inherit inputs inputs'; })
(import ./overlays/evan.nix)
(_: _: { crane = inputs.crane.mkLib pkgs; })
inputs.fenix.overlays.default
inputs.ghciwatch-compat.overlays.default
inputs.haskell-overlay.overlays.default
inputs.zig-overlay.overlays.default
(import ./overlays/haskell.nix)
(import ./overlays/roc.nix)
(import ./overlays/bash.nix)
(import ./overlays/packages.nix)
(import ./overlays/kakoune-plugins.nix)
(import ./overlays/home-configurations.nix)
(import ./overlays/nixos-images.nix)
];
};
legacyPackages = pkgs;
devShells = {
default = config.devShells.everything;
everything =
pkgs.mkShell {
name = "everything";
packages = [ pkgs.commonPackages ];
};
};
formatter = pkgs.nixpkgs-fmt;
};
};
}