-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
93 lines (87 loc) · 2.73 KB
/
flake.nix
File metadata and controls
93 lines (87 loc) · 2.73 KB
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
90
91
92
93
{
nixConfig = {
extra-substituters = [ "https://nix-community.cachix.org" ];
# extra-trusted-public-keys = [];
extra-experimental-features = "nix-command flakes";
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.11";
systems.url = "github:nix-systems/default";
flake-parts.url = "github:hercules-ci/flake-parts";
nix-filter.url = "github:numtide/nix-filter";
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
bundler = {
url = "github:ttak0422/bundler/v3";
# url = "path:/Users/tak/ghq/github.com/ttak0422/bundler";
# url = "path:/home/ttak0422/ghq/github.com/ttak0422/bundler";
inputs = {
nixpkgs.follows = "nixpkgs-stable";
};
};
skk-dict = {
url = "github:skk-dev/dict";
flake = false;
};
# javaPackages
junit-console = {
url = "https://repo.maven.apache.org/maven2/org/junit/platform/junit-platform-console-standalone/1.10.2/junit-platform-console-standalone-1.10.2.jar";
flake = false;
};
jol = {
url = "https://repo.maven.apache.org/maven2/org/openjdk/jol/jol-cli/0.17/jol-cli-0.17-full.jar";
flake = false;
};
# v2
v2-mcp-hub = {
url = "github:ravitemer/mcp-hub";
inputs.nixpkgs.follows = "nixpkgs";
};
v2-fff-nvim.url = "github:dmtrKovalenko/fff.nvim";
v2-blink-cmp.url = "github:Saghen/blink.cmp";
v2-pterm.url = "github:ttak0422/pterm";
v2-kotlin-lsp-src-aarch64-darwin = {
url = "https://download-cdn.jetbrains.com/kotlin-lsp/261.13587.0/kotlin-lsp-261.13587.0-mac-aarch64.zip";
flake = false;
};
# WIP
# v2-rustowl.url = "github:nix-community/rustowl-flake";
};
outputs =
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = import inputs.systems;
imports = [ inputs.bundler.flakeModules.neovim ];
perSystem =
{
inputs',
system,
pkgs,
lib,
...
}:
{
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
overlays = import ./overlays.nix { inherit inputs inputs'; };
config.allowUnfreePredicate =
pkg:
builtins.elem (lib.getName pkg) [
"copilot-language-server"
"idea"
"terraform"
];
};
bundler-nvim = {
v2 = import ./v2 {
inherit inputs' pkgs lib;
};
}
// (import ./tests {
inherit inputs';
inherit pkgs;
});
}
// import ./apps.nix { inherit pkgs; };
};
}