-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
172 lines (143 loc) · 4.87 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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
{
description = "JenSeReals flake repository";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-darwin.url = "github:nixos/nixpkgs/nixpkgs-24.11-darwin";
flake-parts.url = "github:hercules-ci/flake-parts";
home-manager = {
# url = "github:nix-community/home-manager/master";
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
nur = {
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
# nixos-hardware.url = "github:NixOS/nixos-hardware/083823b7904e43a4fc1c7229781417e875359a42";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs.nixpkgs.follows = "nixpkgs";
};
fw-ectool = {
url = "github:tlvince/ectool.nix";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.1";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
impermanence.url = "github:nix-community/impermanence";
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
ragenix.url = "github:yaxitech/ragenix";
darwin.url = "github:LnL7/nix-darwin";
darwin.inputs.nixpkgs.follows = "nixpkgs-darwin";
mac-app-util = {
url = "github:hraban/mac-app-util";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew";
snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
};
snowfall-frost = {
url = "github:snowfallorg/frost";
inputs.nixpkgs.follows = "nixpkgs";
};
flake = {
url = "github:snowfallorg/flake";
inputs.nixpkgs.follows = "nixpkgs";
};
devshell.url = "github:numtide/devshell";
devshell.inputs.nixpkgs.follows = "nixpkgs-unstable";
devenv.url = "github:cachix/devenv";
devenv.inputs.nixpkgs.follows = "nixpkgs-unstable";
rust-overlay.url = "github:oxalica/rust-overlay";
rust-overlay.inputs.nixpkgs.follows = "nixpkgs-unstable";
wezterm.url = "github:wez/wezterm/main?dir=nix";
wezterm.inputs.nixpkgs.follows = "nixpkgs-unstable";
nix-vscode-extensions.url = "github:nix-community/nix-vscode-extensions";
nix-vscode-extensions.inputs.nixpkgs.follows = "nixpkgs-unstable";
vscode-server.url = "github:nix-community/nixos-vscode-server";
vscode-server.inputs.nixpkgs.follows = "nixpkgs-unstable";
anyrun.url = "github:anyrun-org/anyrun";
anyrun-nixos-options.url = "github:n3oney/anyrun-nixos-options";
typst-live.url = "github:ItsEthra/typst-live";
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
stylix.url = "github:danth/stylix/master";
};
outputs =
{ self, ... }@inputs:
let
inherit inputs;
lib = inputs.snowfall-lib.mkLib {
inherit inputs;
src = ./.;
snowfall = {
meta = {
name = "JenSeReal";
title = "JenSeReal";
};
namespace = "JenSeReal";
};
};
in
lib.mkFlake {
outputs-builder = channels: {
formatter = channels.nixpkgs.alejandra;
};
channels-config = {
allowUnfree = true;
permittedInsecurePackages = [ ];
};
overlays = with inputs; [
flake.overlays.default
nur.overlays.default
snowfall-frost.overlays.default
rust-overlay.overlays.default
];
systems = {
modules = {
darwin = with inputs; [
home-manager.darwinModules.home-manager
nix-homebrew.darwinModules.nix-homebrew
nixvim.nixDarwinModules.nixvim
stylix.darwinModules.stylix
mac-app-util.darwinModules.default
ragenix.darwinModules.default
];
home = with inputs; [
anyrun.homeManagerModules.anyrun-with-all-plugins
nixvim.homeManagerModules.nixvim
sops-nix.homeManagerModules.sops
ragenix.homeManagerModules.default
vscode-server.homeModules.default
stylix.homeManagerModules.stylix
];
nixos = with inputs; [
home-manager.nixosModules.home-manager
vscode-server.nixosModules.default
lanzaboote.nixosModules.lanzaboote
sops-nix.nixosModules.sops
ragenix.nixosModules.default
stylix.nixosModules.stylix
];
};
};
templates = {
default = {
path = ./templates/default;
description = "A very basic flake for dev environments";
};
};
defaultTemplate = self.templates.default;
};
}