-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
56 lines (54 loc) · 1.31 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
description = "Nix Machina";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
};
darwin = {
url = "github:LnL7/nix-darwin/master";
inputs.nixpkgs.follows = "nixpkgs";
};
emacs-overlay = {
# TODO: remove commit when emacsql error with org-roam is fixed
url = "github:nix-community/emacs-overlay/ed670c7246dd4bfd24e50939eb5d9bcaa95e638b";
inputs.nixpkgs.follows = "nixpkgs";
};
# Remove once this is done: https://github.com/nix-community/home-manager/issues/1341
mac-app-util.url = "github:hraban/mac-app-util";
};
outputs =
inputs@{
self,
nixpkgs,
home-manager,
darwin,
emacs-overlay,
mac-app-util,
}:
let
overlays = [
emacs-overlay.overlay
];
in
{
darwinConfigurations = {
"macbook" = darwin.lib.darwinSystem {
system = "aarch64-darwin";
modules = [
{ nixpkgs.overlays = overlays; }
mac-app-util.darwinModules.default
./macos
];
inputs = {
inherit
darwin
home-manager
nixpkgs
mac-app-util
;
};
};
};
};
}