-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
52 lines (44 loc) · 1.25 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
{
description = "Declarative MacOS nix-conf, forked from sgrimee/nix-unified-main";
inputs = {
# nixpkgs
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
stable-nixos.url = "github:nixos/nixpkgs/nixos-24.11";
stable-darwin.url = "github:NixOS/nixpkgs/nixpkgs-24.11-darwin";
mkAlias = {
url = "github:reckenrode/mkAlias";
inputs.nixpkgs.follows = "stable-nixos";
};
nixos-hardware.url = "github:NixOS/nixos-hardware";
nix-darwin = {
url = "github:lnl7/nix-darwin";
inputs.nixpkgs.follows = "stable-darwin";
};
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "stable-nixos";
};
};
outputs =
{ home-manager
, nixos-hardware
, self
, ...
} @ inputs:
let
stateVersion = "23.05";
mkModules = host: (import ./modules/hosts/${host} { inherit inputs; });
in
{
darwinConfigurations = {
cvanlabe-m3 = inputs.nix-darwin.lib.darwinSystem rec {
system = "aarch64-darwin";
specialArgs = {
inherit inputs system stateVersion;
overlays = import ./overlays;
};
modules = mkModules "cvanlabe-m3";
};
};
};
}