Repository navigation
Expand file tree
/
Copy pathflake.nix
More file actions
103 lines (98 loc) · 2.82 KB
/
Copy pathflake.nix
File metadata and controls
103 lines (98 loc) · 2.82 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
{
description = "noib3's dotfiles";
inputs = {
brew-api = {
url = "github:BatteredBunny/brew-api";
flake = false;
};
brew-nix = {
url = "github:BatteredBunny/brew-nix";
inputs.brew-api.follows = "brew-api";
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";
};
codex-lb = {
url = "github:Soju06/codex-lb";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-parts.url = "github:hercules-ci/flake-parts";
jujutsu = {
url = "github:jj-vcs/jj";
inputs.nixpkgs.follows = "nixpkgs";
inputs.rust-overlay.follows = "rust-overlay";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
neovim = {
url = ./modules/home/neovim;
inputs.nixpkgs.follows = "nixpkgs";
inputs.treefmt-nix.follows = "treefmt-nix";
};
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
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://cache.sub60.dev/noib3/dotfiles"
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"cache.sub60.dev/noib3/dotfiles-2:2bE8/BIPanep3bOeWPG/h8Pw4Eijjs+6pw/QBXTsEcs="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
}