-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
62 lines (58 loc) · 1.9 KB
/
flake.nix
File metadata and controls
62 lines (58 loc) · 1.9 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
{
description = "Nix configurations";
inputs = {
agenix = { url = "github:ryantm/agenix"; };
determinate = {
url = "https://flakehub.com/f/DeterminateSystems/determinate/*";
};
home-manager = {
url = "github:nix-community/home-manager/release-25.11";
};
llm-agents = { url = "github:numtide/llm-agents.nix"; };
nix-darwin = {
url = "github:nix-darwin/nix-darwin/nix-darwin-25.11";
inputs = { nixpkgs.follows = "nixpkgs-darwin"; };
};
nixpkgs-nixos = { url = "github:NixOS/nixpkgs/nixos-25.11"; };
nixpkgs-darwin = { url = "github:NixOS/nixpkgs/nixpkgs-25.11-darwin"; };
};
outputs = {
self, agenix, determinate, home-manager, llm-agents, nix-darwin,
nixpkgs-darwin, nixpkgs-nixos, ...
}@inputs: {
darwinConfigurations = {
nyx = nix-darwin.lib.darwinSystem({
modules = [ ./hosts/nyx.nix ];
specialArgs = { inherit inputs; };
});
};
devShells =
let mkDevShell = pkgs: pkgs.mkShell {
buildInputs = with pkgs; [
agenix.packages.${pkgs.stdenv.hostPlatform.system}.default
lua-language-server vim-language-server
];
NVIM_LAZYDEV = "${pkgs.vimPlugins.lazydev-nvim}";
};
in {
aarch64-darwin.default = mkDevShell(
import nixpkgs-darwin { system = "aarch64-darwin"; }
);
x86_64-linux.default = mkDevShell(
import nixpkgs-nixos { system = "x86_64-linux"; }
);
};
nixosConfigurations = {
hades = nixpkgs-nixos.lib.nixosSystem({
modules = [ ./hosts/hades.nix ];
specialArgs = { inherit inputs; };
system = "x86_64-linux";
});
dionysus = nixpkgs-nixos.lib.nixosSystem({
modules = [ ./hosts/dionysus.nix ];
specialArgs = { inherit inputs; };
system = "x86_64-linux";
});
};
};
}