forked from papercomputeco/stereOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
102 lines (88 loc) · 3.14 KB
/
flake.nix
File metadata and controls
102 lines (88 loc) · 3.14 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
{
description = "stereOS — a NixOS-based operating system for AI agents";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
dagger.url = "github:dagger/nix";
dagger.inputs.nixpkgs.follows = "nixpkgs";
agentd = {
url = "github:papercomputeco/agentd";
inputs.nixpkgs.follows = "nixpkgs";
};
stereosd = {
url = "github:papercomputeco/stereosd";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@{ flake-parts, ... }:
let
stereos-lib = import ./lib { inherit inputs; };
in
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
./flake/devshell.nix
./flake/images.nix
./flake/checks.nix
];
# Includes Darwin so perSystem outputs (devShells, checks) are
# available on developer machines.
systems = [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
# System-agnostic outputs
flake = {
# NixOS modules (consumers import these)
nixosModules = {
default = ./modules;
};
# System configurations ("mixtapes")
#
# Default configurations are production-ready (no SSH keys baked in).
# Dev configurations (*-dev) include profiles/dev.nix which injects
# the developer's SSH key from ~/.config/stereos/ssh-key.pub.
nixosConfigurations = {
# -- Production configurations --------------------------------------
opencode-mixtape = stereos-lib.mkMixtape {
name = "opencode-mixtape";
features = [ ./mixtapes/opencode/base.nix ];
};
claude-code-mixtape = stereos-lib.mkMixtape {
name = "claude-code-mixtape";
features = [ ./mixtapes/claude-code/base.nix ];
};
gemini-cli-mixtape = stereos-lib.mkMixtape {
name = "gemini-cli-mixtape";
features = [ ./mixtapes/gemini-cli/base.nix ];
};
full-mixtape = stereos-lib.mkMixtape {
name = "full-mixtape";
features = [ ./mixtapes/full/base.nix ];
};
# -- Dev configurations (SSH key injection) --------------------------
opencode-mixtape-dev = stereos-lib.mkMixtape {
name = "opencode-mixtape";
features = [ ./mixtapes/opencode/base.nix ];
extraModules = [ ./profiles/dev.nix ];
};
claude-code-mixtape-dev = stereos-lib.mkMixtape {
name = "claude-code-mixtape";
features = [ ./mixtapes/claude-code/base.nix ];
extraModules = [ ./profiles/dev.nix ];
};
gemini-cli-mixtape-dev = stereos-lib.mkMixtape {
name = "gemini-cli-mixtape";
features = [ ./mixtapes/gemini-cli/base.nix ];
extraModules = [ ./profiles/dev.nix ];
};
full-mixtape-dev = stereos-lib.mkMixtape {
name = "full-mixtape";
features = [ ./mixtapes/full/base.nix ];
extraModules = [ ./profiles/dev.nix ];
};
};
};
};
}