-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
49 lines (42 loc) · 1.5 KB
/
flake.nix
File metadata and controls
49 lines (42 loc) · 1.5 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
{
description = "Modular Mac setup with essential tools";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nix-darwin.url = "github:LnL7/nix-darwin";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, nix-darwin, home-manager }:
let
system = "aarch64-darwin";
pkgs = nixpkgs.legacyPackages.${system};
in {
# Formatter for `nix fmt`
formatter.${system} = pkgs.nixpkgs-fmt;
darwinConfigurations."bleuprint" = nix-darwin.lib.darwinSystem {
inherit system;
modules = [
# Core system configuration
./modules/system/core.nix
./modules/system/cli-utils.nix
./modules/system/dev-tools.nix
# Language-specific development stacks
./modules/languages/python.nix
./modules/languages/rust.nix
./modules/languages/javascript.nix
./modules/languages/go.nix
# Optional: ML/Data Science stack (uncomment to enable)
# ./modules/system/ml-stack.nix
# Homebrew applications
./modules/homebrew/apps.nix
# Home Manager configuration
home-manager.darwinModules.home-manager {
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.YOUR-USERNAME = import ./modules/home/default.nix;
}
];
};
};
}