-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
43 lines (35 loc) · 1.04 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
{
inputs = {
barbell.inputs.nixpkgs.follows = "nixpkgs";
barbell.url = "github:jhvst/barbell?dir=packages/barbell";
devenv.url = "github:cachix/devenv";
flake-parts.url = "github:hercules-ci/flake-parts";
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
neovim.inputs.nixpkgs.follows = "nixpkgs";
neovim.url = "github:jhvst/barbell?dir=packages/neovim";
};
outputs =
inputs@{ self
, devenv
, flake-parts
, nixpkgs
, ...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = nixpkgs.lib.systems.flakeExposed;
imports = [
inputs.devenv.flakeModule
];
perSystem = { pkgs, lib, config, system, inputs', ... }: {
packages.barbell = inputs'.barbell.packages.default;
packages.neovim = inputs'.neovim.packages.default;
devenv.shells.default = {
packages = [
config.packages.barbell
config.packages.neovim
];
};
packages.default = config.packages.barbell;
};
};
}