-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
198 lines (163 loc) · 4.57 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
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
{
description = "My personal dotfiles for NixOS";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
lix-module = {
url = "https://git.lix.systems/lix-project/nixos-module/archive/2.91.1-1.tar.gz";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence.url = "github:nix-community/impermanence";
# Use nix-index without having to generate the database locally
nix-index-database = {
url = "github:Mic92/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
# Flake framework
flake-parts.url = "github:hercules-ci/flake-parts";
# Flake Parts module for defining configs
ez-configs.url = "github:ehllie/ez-configs";
# Nix user repository
nur.url = "github:nix-community/NUR";
# Generate configs
nixago = {
url = "github:nix-community/nixago";
inputs.nixpkgs.follows = "nixpkgs";
};
# Developer environments
devshell = {
url = "github:numtide/devshell";
inputs.nixpkgs.follows = "nixpkgs";
};
# Prolog language server
swi-lsp-server = {
url = "github:jamesnvc/lsp_server";
flake = false;
};
# Purescript overlay
# TODO: remove when issue with spago is fixed
purescript-overlay = {
url = "github:thomashoneyman/purescript-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
# Hyprland community tools
hyprland-contrib = {
url = "github:hyprwm/contrib";
inputs.nixpkgs.follows = "nixpkgs";
};
# Only used for GRUB theme
stylix = {
url = "github:danth/stylix";
inputs = {
nixpkgs.follows = "nixpkgs";
home-manager.follows = "home-manager";
};
};
ttf-to-tty = {
url = "github:Sigmanificient/ttf_to_tty";
inputs.nixpkgs.follows = "nixpkgs";
};
# Catppuccin Theming
catppuccin.url = "github:catppuccin/nix";
# Extra Catppuccin themes
catppuccin-ohmyrepl = {
url = "github:catppuccin/ohmyrepl";
flake = false;
};
# Change to official repo when catppuccin/prismlauncher#6 is merged
catppuccin-prismlauncher = {
url = "github:Anomalocaridid/prismlauncher/whiskers";
flake = false;
};
# Catppuccin wallpapers
catppuccin-fractal-wallpapers = {
url = "github:psylopneunonym/Catppuccin-Fractal-Wallpapers";
flake = false;
};
# Gaming tweaks
nix-gaming.url = "github:fufexan/nix-gaming";
# Spotify customization
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# Fish exercism wrapper
exercism-cli-fish-wrapper = {
url = "github:glennj/exercism-cli-fish-wrapper";
flake = false;
};
# yazi plugins
## Previewers
glow-yazi = {
url = "github:Reledia/glow.yazi";
flake = false;
};
miller-yazi = {
url = "github:Reledia/miller.yazi";
flake = false;
};
exifaudio-yazi = {
url = "github:Sonico98/exifaudio.yazi";
flake = false;
};
ouch-yazi = {
url = "github:ndtoan96/ouch.yazi";
flake = false;
};
## Functional Plugins
### Has smart-filter.yazi and full-border.yazi
yazi-plugins = {
url = "github:yazi-rs/plugins";
flake = false;
};
### Jumping
relative-motions-yazi = {
# Use main branch after next yazi release
url = "github:dedukun/relative-motions.yazi/0.3.3";
flake = false;
};
### UI enhancements
starship-yazi = {
url = "github:Rolv-Apneseth/starship.yazi";
flake = false;
};
};
outputs =
inputs@{ nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } rec {
imports = [
inputs.ez-configs.flakeModule
inputs.devshell.flakeModule
];
ezConfigs = {
root = ./.;
globalArgs = {
inherit inputs;
inherit (flake) diskoConfigurations;
};
};
# Expose this to use flake directly with Disko
flake.diskoConfigurations = import ./disko-configurations;
systems = [ "x86_64-linux" ];
perSystem =
args@{
pkgs,
inputs',
...
}:
{
formatter = pkgs.nixfmt-rfc-style;
packages = import ./scripts args;
devshells = import ./devshells {
inherit pkgs inputs;
};
};
};
}