-
Notifications
You must be signed in to change notification settings - Fork 26
/
flake.nix
157 lines (127 loc) · 4.31 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
darwin.url = "github:lnl7/nix-darwin/master";
darwin.inputs.nixpkgs.follows = "nixpkgs";
nixos-generators.url = "github:nix-community/nixos-generators";
nixos-generators.inputs.nixpkgs.follows = "nixpkgs";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
flake-parts.url = "github:hercules-ci/flake-parts";
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/release-2.91.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "snowfall-lib/flake-utils-plus/flake-utils";
};
mise = {
url = "github:jdx/mise";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-utils.follows = "snowfall-lib/flake-utils-plus/flake-utils";
};
};
catppuccin.url = "github:catppuccin/nix";
snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
};
snowfall-flake = {
url = "github:snowfallorg/flake";
# Flake requires some packages that aren't on 22.05, but are available on unstable.
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim = {
url = "github:nix-community/nixvim";
# nixvim has a lot of inputs we are using, so pin them to same version
inputs = {
nixpkgs.follows = "nixpkgs";
nix-darwin.follows = "darwin";
home-manager.follows = "home-manager";
flake-parts.follows = "flake-parts";
treefmt-nix.follows = "treefmt-nix";
flake-compat.follows = "snowfall-lib/flake-compat";
};
};
khanelivim = {
url = "github:khaneliman/khanelivim";
inputs.snowfall-lib.follows = "snowfall-lib";
inputs.snowfall-flake.follows = "snowfall-flake";
inputs.nixvim.follows = "nixvim";
};
# https://developer.1password.com/docs/cli/shell-plugins/nix/
_1password-shell-plugins = {
url = "github:1Password/shell-plugins";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "snowfall-lib/flake-utils-plus/flake-utils";
};
nixpkgs-firefox-darwin.url = "github:bandithedoge/nixpkgs-firefox-darwin";
nixpkgs-firefox-darwin.inputs.nixpkgs.follows = "nixpkgs";
# nix-index-database.url = "github:nix-community/nix-index-database";
# nix-index-database.inputs.nixpkgs.follows = "nixpkgs";
treefmt-nix.url = "github:numtide/treefmt-nix";
treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
phoenix = {
url = "git+https://codeberg.org/celenity/Phoenix.git?shallow=1";
flake = false;
};
nil = {
url = "github:oxalica/nil";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flake-utils.follows = "snowfall-lib/flake-utils-plus/flake-utils";
};
zsh-cd-ls = {
url = "github:zshzoo/cd-ls";
flake = false;
};
zsh-ssh = {
url = "github:sunlei/zsh-ssh";
flake = false;
};
};
outputs =
inputs:
(inputs.snowfall-lib.mkFlake {
inherit inputs;
src = ./.;
channels-config = {
allowUnfree = true;
};
overlays = with inputs; [
darwin.overlays.default
snowfall-flake.overlays.default
nixpkgs-firefox-darwin.overlay
lix-module.overlays.default
];
systems.modules.darwin = [ ];
systems.modules.nixos = with inputs; [
catppuccin.nixosModules.catppuccin
];
homes.modules = with inputs; [
_1password-shell-plugins.hmModules.default
catppuccin.homeManagerModules.catppuccin
];
alias = {
packages.default = "switch";
};
outputs-builder = channels:
# let
# system = channels.nixpkgs.system;
# treefmtEval = inputs.treefmt-nix.lib.evalModule channels.nixpkgs ./treefmt.nix;
# in
{
formatter = channels.nixpkgs.nixpkgs-fmt;
# formatter = treefmtEval.${system}.config.build.wrapper;
# checks = {
# treefmt = treefmtEval.${system}.config.build.check self;
# };
};
});
nixConfig = {
extra-substituters = [
"https://nix-community.cachix.org"
];
extra-trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
}