-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
112 lines (94 loc) · 2.79 KB
/
Copy pathflake.nix
File metadata and controls
112 lines (94 loc) · 2.79 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
106
107
108
109
110
111
112
{
description = "anirudh's nixos flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
# advent of code cli (my fork)
aoc-cli = {
url = "github:kidskoding/aoc-cli";
inputs.nixpkgs.follows = "nixpkgs";
};
# coding agents
claude-code-cli = {
url = "github:sadjow/claude-code-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
codex-cli = {
url = "github:sadjow/codex-cli-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# rust tooling
fenix = {
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs";
};
# matrix tui client
matui = {
url = "github:pkulak/matui";
inputs.nixpkgs.follows = "nixpkgs";
};
# productivity
timer = {
url = "github:sectore/timr-tui";
inputs.nixpkgs.follows = "nixpkgs";
};
toofan = {
url = "github:vyrx-dev/toofan";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@{ self, nixpkgs, home-manager, aoc-cli, claude-code-cli, codex-cli, fenix, matui, toofan, timer, ... }: {
templates.go = {
path = ./templates/go;
description = "go dev shell with direnv";
};
templates.gradle = {
path = ./templates/gradle;
description = "gradle dev shell with direnv";
};
templates.python = {
path = ./templates/python3.13;
description = "python dev shell with direnv";
};
templates.rails = {
path = ./templates/rails;
description = "ruby on rails dev shell with direnv";
};
templates.rust = {
path = ./templates/rust;
description = "rust dev shell with direnv";
};
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./configuration.nix
home-manager.nixosModules.home-manager {
environment.systemPackages = [
aoc-cli.packages.x86_64-linux.default
claude-code-cli.packages.x86_64-linux.default
codex-cli.packages.x86_64-linux.default
# rust stable toolchain
(fenix.packages.x86_64-linux.stable.withComponents [
"cargo"
"clippy"
"rust-analyzer"
"rust-src"
"rustc"
"rustfmt"
])
matui.packages.x86_64-linux.default
toofan.packages.x86_64-linux.default
timer.packages.x86_64-linux.default
];
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.anirudh = import ./home-manager/home.nix;
}
];
};
};
}