-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathflake.nix
More file actions
105 lines (100 loc) · 2.85 KB
/
flake.nix
File metadata and controls
105 lines (100 loc) · 2.85 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
94
95
96
97
98
99
100
101
102
103
104
105
{
description = "noib3's dotfiles";
inputs = {
brew-nix = {
url = "github:BatteredBunny/brew-nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nix-darwin.follows = "nix-darwin";
};
claude-code-nix = {
url = "github:sadjow/claude-code-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
codex-cli-nix = {
url = "github:sadjow/codex-cli-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-parts.url = "github:hercules-ci/flake-parts";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
neovim = {
url = ./modules/home/neovim;
inputs.nixpkgs.follows = "nixpkgs";
# inputs.neovim-src.follows = "neovim-src";
};
neovim-src = {
url = "github:neovim/neovim";
flake = false;
};
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-jettison = {
url = "git+ssh://git@github.com/noib3/nix-jettison";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
opencode = {
url = "github:anomalyco/opencode/production";
inputs.nixpkgs.follows = "nixpkgs";
};
opencode-anthropic-auth = {
url = "github:ex-machina-co/opencode-anthropic-auth";
flake = false;
};
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
treefmt-nix = {
url = "github:numtide/treefmt-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ ./modules/flake ];
_module.args = {
colorscheme = "gruvbox";
fontstack = "iosevka";
username = "noib3";
};
perSystem =
{
config,
lib,
pkgs,
...
}:
{
# Workaround for https://github.com/NixOS/nix/issues/8881 so that we
# can run individual checks with `nix run .#check-<foo>`.
apps = lib.mapAttrs' (name: check: {
name = "check-${name}";
value = {
type = "app";
program =
(pkgs.writeShellScript "check-${name}" ''
# Force evaluation of ${check}.
echo -e "\033[1;32m✓\033[0m Check '${name}' passed"
'').outPath;
};
}) config.checks;
};
};
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
"https://nomad.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"nomad.cachix.org-1:jQ4al6yxQyvUBB7YJVJbMbc9rASokqamqvPhBUrVjww="
];
};
}