-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
87 lines (75 loc) · 1.94 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
{
description = "tedbyron's nix config";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
darwin = {
url = "github:lnl7/nix-darwin/nix-darwin-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-wsl = {
url = "github:nix-community/nixos-wsl";
inputs.nixpkgs.follows = "nixpkgs";
};
curlio = {
url = "path:./flakes/curlio";
inputs = {
nixpkgs.follows = "nixpkgs-unstable";
flake-utils.follows = "flake-utils";
};
};
dircolors = {
url = "path:./flakes/dircolors";
inputs = {
nixpkgs.follows = "nixpkgs-unstable";
flake-utils.follows = "flake-utils";
};
};
spicetify-nix = {
url = "github:gerg-l/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
};
outputs =
{
self,
nixpkgs,
flake-utils,
...
}@inputs:
let
inherit (lib.ted) mkSystem;
inherit (flake-utils.lib.system) aarch64-darwin;
overlays = [ ];
lib = nixpkgs.lib.extend (
final: _: {
ted = import ./lib {
inherit self inputs;
lib = final;
};
}
);
in
{
darwinConfigurations = {
teds-laptop = mkSystem "teds-laptop" {
inherit overlays;
system = aarch64-darwin;
};
teds-work-laptop = mkSystem "teds-work-laptop" {
inherit overlays;
system = aarch64-darwin;
};
};
}
// flake-utils.lib.eachDefaultSystem (system: {
packages = inputs.curlio.outputs.packages.${system} // {
dircolors = inputs.dircolors.outputs.packages.${system}.default;
};
});
}