-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
106 lines (89 loc) · 2.71 KB
/
flake.nix
File metadata and controls
106 lines (89 loc) · 2.71 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
{
description = "psteinroe's Darwin system configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-homebrew.url = "github:zhaofengli/nix-homebrew";
# GUI apps as nix derivations
nix-casks = {
url = "github:atahanyorganci/nix-casks";
inputs.nixpkgs.follows = "nixpkgs";
};
# Claude Code CLI (pre-built binary)
claude-code = {
url = "github:sadjow/claude-code-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# OpenAI Codex CLI (pre-built binary)
codex-cli = {
url = "github:sadjow/codex-cli-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# Pi coding agent (from llm-agents.nix)
llm-agents = {
url = "github:numtide/llm-agents.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# Remote skill sources
agent-browser-skills = {
url = "github:vercel-labs/agent-browser";
flake = false;
};
getsentry-skills = {
url = "github:getsentry/skills";
flake = false;
};
mattpocock-skills = {
url = "github:mattpocock/skills";
flake = false;
};
# Rust toolchain (declarative, replaces rustup)
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
# Ghostty config management (binary via Homebrew)
ghostty-hm-module.url = "github:clo4/ghostty-hm-module";
};
outputs = inputs@{ self, nixpkgs, nix-darwin, home-manager, nix-homebrew, nix-casks, claude-code, codex-cli, llm-agents, rust-overlay, ghostty-hm-module, ... }:
let
system = "aarch64-darwin";
username = "psteinroe";
hostname = "psteinroe";
in
{
darwinConfigurations.${hostname} = nix-darwin.lib.darwinSystem {
inherit system;
specialArgs = { inherit inputs system username; };
modules = [
./nix/darwin
nix-homebrew.darwinModules.nix-homebrew
{
nix-homebrew = {
enable = true;
user = username;
autoMigrate = true;
};
}
home-manager.darwinModules.home-manager
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit inputs system username; };
users.${username} = import ./nix/home;
};
}
];
};
# Expose the package set
darwinPackages = self.darwinConfigurations.${hostname}.pkgs;
};
}