-
Notifications
You must be signed in to change notification settings - Fork 6
/
flake.nix
40 lines (39 loc) · 1.15 KB
/
flake.nix
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
# The `flake.lock` for this flake probably won't work, it's for development,
# better generate your own.
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-24.05-darwin";
flake-utils.url = "github:numtide/flake-utils";
nix-darwin = {
url = "github:LnL7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
brew-nix = {
# for local testing via `nix flake check` while developing
#url = "path:../";
url = "github:BatteredBunny/brew-nix";
inputs.nix-darwin.follows = "nix-darwin";
inputs.brew-api.follows = "brew-api";
inputs.flake-utils.follows = "flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
brew-api = {
url = "github:BatteredBunny/brew-api";
flake = false;
};
};
outputs = { self, nixpkgs, nix-darwin, brew-nix, ... }: {
darwinConfigurations.somehost = nix-darwin.lib.darwinSystem {
system = "x86_64-darwin";
modules = [
brew-nix.darwinModules.default
({ pkgs, ... }: {
brew-nix.enable = true;
environment.systemPackages = [
pkgs.brewCasks.marta
];
})
];
};
};
}