-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
226 lines (196 loc) · 6.63 KB
/
flake.nix
File metadata and controls
226 lines (196 loc) · 6.63 KB
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
{
# _ ___ ______ ____
# / | / (_) __ / ____/___ ____ / __/____
# / |/ / / |/_/ / / / __ \/ __ \/ /_/ ___/
# / /| / /> < / /___/ /_/ / / / / __(__ )
# /_/ |_/_/_/|_| \____/\____/_/ /_/_/ /____/
description = "Lambdajon's dotfiles";
# inputs are other flakes you use within your own flake, dependencies
# for your flake, etc.
inputs = {
# Nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
# You can access packages and modules from different nixpkgs revs
# at the same time. Here's an working example:
# Nixpkgs for darwin
nixpkgs-darwin.url = "github:nixos/nixpkgs/nixpkgs-25.05-darwin";
# Unstable Nixpkgs
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
# Also see the 'unstable-packages' overlay at 'overlays/home.nix'.
# Home manager
home-manager = {
url = "github:nix-community/home-manager/release-25.11";
inputs.nixpkgs.follows = "nixpkgs";
};
# Nix-darwin for macOS systems management
nix-darwin = {
url = "github:xinux-org/nix-darwin/nix-darwin-25.05";
inputs.nixpkgs.follows = "nixpkgs-darwin";
};
# Flake utils for eachSystem
flake-utils.url = "github:numtide/flake-utils";
# Secrets management
sops-nix = {
url = "github:Mic92/sops-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# Disko for easier partition management
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
# Personal repository of lib, overlays and packages
# orzklv-pkgs = {
# url = "github:orzklv/pkgs";
# inputs = {
# nixpkgs.follows = "nixpkgs";
# nixpkgs-unstable.follows = "nixpkgs-unstable";
# };
# };
# An anime game(s) launcher (Genshin Impact)
# aagl.url = "github:ezKEa/aagl-gtk-on-nix";
# Or, if you follow Nixkgs release 25.05:
aagl.url = "github:ezKEa/aagl-gtk-on-nix/release-25.11";
aagl.inputs.nixpkgs.follows = "nixpkgs"; # Name of nixpkgs input you want to use
# Goofy ahh browser from brainrot generation
# zen-browser = {
# url = "github:0xc000022070/zen-browser-flake";
# # IMPORTANT: we're using "libgbm" and is only available in unstable so ensure
# # to have it up-to-date or simply don't specify the nixpkgs input
# inputs.nixpkgs.follows = "nixpkgs";
# };
# TODO: Add any other flake you might need
# hardware.url = "github:nixos/nixos-hardware";
# Shameless plug: looking for a way to nixify your themes and make
# everything match nicely? Try nix-colors!
# nix-colors.url = "github:misterio77/nix-colors";
relago = {
url = "github:xinux-org/relago/bootstrap-relago-module";
inputs = {
nixpkgs.follows = "nixpkgs";
nixpkgs-unstable.follows = "nixpkgs-unstable";
};
};
crashes = {
url = "github:xinux-org/crash/feature/java-py-integrate";
inputs = {
nixpkgs.follows = "nixpkgs";
nixpkgs-unstable.follows = "nixpkgs-unstable";
};
};
};
# In this context, outputs are mostly about getting home-manager what it
# needs since it will be the one using the flake
outputs = {
self,
nixpkgs,
home-manager,
flake-utils,
# orzklv-pkgs,
# relago,
crashes,
...
} @ inputs: let
# Self instance pointer
outputs = self;
in
# Attributes for each system
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = nixpkgs.legacyPackages.${system};
in
# Nixpkgs packages for the current system
{
# Development shells
devShells.default = import ./shell.nix {inherit pkgs;};
}
)
# and ...
//
# Attribute from static evaluation
{
# Formatter for your nix files, available through 'nix fmt'
# Other options beside 'alejandra' include 'nixpkgs-fmt'
# inherit (orzklv-pkgs) formatter;
# Nixpkgs, Home-Manager and personal helpful functions
lib = nixpkgs.lib // home-manager.lib;
# Reusable nixos modules you might want to export
# These are usually stuff you would upstream into nixpkgs
nixosModules = import ./modules/nixos;
# Reusable darwin modules you might want to export
# These are usually stuff you would upstream into nixpkgs
darwinModules = import ./modules/darwin;
# Reusable home-manager modules you might want to export
# These are usually stuff you would upstream into home-manager
homeModules = import ./modules/home;
# NixOS configuration entrypoint
# Available through 'nixos-rebuild --flake .#your-hostname'
# Stored at/as root/nixos/<hostname lower case>/*.nix
# nixosConfigurations = orzklv-pkgs.lib.config.mapSystem {
# inherit inputs outputs;
# opath = ./.;
# list = [
# "Parallels"
# # "Laboratory"
# # "Station"
# ];
# };
nixosConfigurations."tower" = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./nixos/tower/configuration.nix
];
specialArgs = {
inherit inputs outputs;
};
};
# nixosConfigurations."tower2" = inputs.nixpkgs.lib.nixosSystem {
# system = "x86_64-linux";
# modules = [
# ./nixos/tower2/configuration.nix
# ];
# specialArgs = {
# inherit inputs outputs;
# };
# };
nixosConfigurations."victus" = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./nixos/victus/configuration.nix
];
specialArgs = {
inherit inputs outputs;
};
};
nixosConfigurations."nixos" = inputs.nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
./nixos/orb/configuration.nix
];
specialArgs = {
inherit inputs outputs;
};
};
nixosConfigurations."beliydobriy" = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
./nixos/tower2/configuration.nix
];
specialArgs = {
inherit inputs outputs;
};
};
# Darwin configuration entrypoint
# Available through 'darwin-rebuild build --flake .#your-hostname'
# Stored at/as root/darwin/<alias name for machine>/*.nix
darwinConfigurations."Lambdajons-MacBook-Pro" = inputs.nix-darwin.lib.darwinSystem {
system = "aarch-darwin";
modules = [
./darwin/macbook-pro/configuration.nix
];
specialArgs = {
inherit inputs outputs;
};
};
};
}