-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
103 lines (88 loc) · 2.42 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
description = "Alesauce's home configs, modeled via Nix";
nixConfig = {
extra-trusted-substituters = [
"https://nix-config.cachix.org"
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"nix-config.cachix.org-1:Vd6raEuldeIZpttVQfrUbLvXJHzzzkS0pezXCVVjDG4="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
inputs = {
base16-schemes = {
url = "github:tinted-theming/base16-schemes";
flake = false;
};
darwin = {
url = "github:lnl7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
flake-parts.url = "github:hercules-ci/flake-parts";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixvim-flake = {
url = "github:alesauce/nixvim-flake";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-parts.follows = "flake-parts";
};
};
nix-fast-build = {
url = "github:Mic92/nix-fast-build";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-parts.follows = "flake-parts";
};
};
nix-index-database = {
url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
git-hooks = {
url = "github:cachix/git-hooks.nix";
inputs = {
nixpkgs.follows = "nixpkgs";
};
};
stylix = {
url = "github:danth/stylix";
inputs = {
nixpkgs.follows = "nixpkgs";
home-manager.follows = "home-manager";
};
};
};
outputs = {
self,
nixpkgs,
...
} @ inputs: let
forAllSystems = nixpkgs.lib.genAttrs [
"aarch64-darwin"
"x86_64-darwin"
"x86_64-linux"
];
in {
hosts = import ./nix/hosts.nix;
pkgs = forAllSystems (localSystem:
import nixpkgs {
inherit localSystem;
overlays = [self.overlays.default];
config = {
allowUnfree = true;
allowAliases = true;
};
});
checks = forAllSystems (import ./nix/checks.nix inputs);
devShells = forAllSystems (import ./nix/dev-shell.nix inputs);
overlays = import ./nix/overlay.nix inputs;
packages = forAllSystems (import ./nix/packages.nix inputs);
darwinConfigurations = import ./nix/darwin.nix inputs;
homeConfigurations = import ./nix/home-manager.nix inputs;
};
}