-
Notifications
You must be signed in to change notification settings - Fork 9
/
flake.nix
52 lines (46 loc) · 1.37 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
# References:
#
# https://github.com/cmacrae/config
# https://www.tweag.io/blog/2020-05-25-flakes/
# https://www.tweag.io/blog/2020-06-25-eval-cache/
# https://www.tweag.io/blog/2020-07-31-nixos-flakes/
{
description = "d12frosted systems configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
darwin.url = "github:lnl7/nix-darwin";
home-manager.url = "github:nix-community/home-manager";
emacs-overlay.url = "github:nix-community/emacs-overlay";
# Follows
darwin.inputs.nixpkgs.follows = "nixpkgs";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nixpkgs, darwin, home-manager, emacs-overlay }:
let
overlays = [
emacs-overlay.overlay
(import ./nix/overlays)
];
in {
darwinConfigurations.d12frosted = darwin.lib.darwinSystem {
system = "aarch64-darwin"; # "x86_64-darwin";
modules = [
./nix/darwin.nix
home-manager.darwinModules.home-manager
{
nixpkgs.overlays = overlays;
}
];
};
darwinConfigurations.borysb = darwin.lib.darwinSystem {
system = "aarch64-darwin"; # "x86_64-darwin";
modules = [
./nix/darwin.nix
home-manager.darwinModules.home-manager
{
nixpkgs.overlays = overlays;
}
];
};
};
}