-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflake.nix
40 lines (39 loc) · 1.1 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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
crane.url = "github:ipetkov/crane";
fenix.url = "github:nix-community/fenix";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
nixpkgs,
flake-utils,
...
} @ inputs:
# Iterate over Arm, x86 for MacOs 🍎 and Linux 🐧
flake-utils.lib.eachSystem (flake-utils.lib.defaultSystems) (
system: let
pkgs = nixpkgs.legacyPackages.${system};
crane = inputs.crane.mkLib pkgs;
fenix = inputs.fenix.packages;
simplemojiBundle = import ./nix {
inherit system pkgs crane fenix;
};
in {
inherit (simplemojiBundle) apps packages devShells;
# Overlays
overlays.default = import ./nix/overlay.nix {
inherit pkgs crane fenix;
};
# nixosModules
nixosModules = {
default = import ./nix/nixos-module.nix {
inherit pkgs crane fenix;
};
home-manager = import ./nix/hm-module.nix {
inherit pkgs crane fenix;
};
};
}
);
}