-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathflake.nix
More file actions
85 lines (75 loc) · 2.62 KB
/
flake.nix
File metadata and controls
85 lines (75 loc) · 2.62 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
{
description = "stereOS — a NixOS-based operating system for AI agents";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
nixpkgs-unstable.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@{ self, flake-parts, ... }:
let
stereos-lib = import ./lib { inherit inputs self; };
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.
#
# These host-native configurations are intended for `nixos-rebuild` use.
# For image builds (packages.<system>.<name>), see flake/images.nix
# which generates per-system configurations for all target architectures.
nixosConfigurations = {
# -- Production configurations --------------------------------------
base = stereos-lib.mkMixtape {
name = "base";
features = [ ./mixtapes/base/package.nix ];
};
coder = stereos-lib.mkMixtape {
name = "coder";
features = [ ./mixtapes/coder/package.nix ];
};
# -- Dev configurations (SSH key injection) --------------------------
base-dev = stereos-lib.mkMixtape {
name = "base";
features = [ ./mixtapes/base/package.nix ];
extraModules = [ ./profiles/dev.nix ];
};
coder-dev = stereos-lib.mkMixtape {
name = "coder";
features = [ ./mixtapes/coder/package.nix ];
extraModules = [ ./profiles/dev.nix ];
};
};
};
};
}