-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
177 lines (147 loc) · 4.24 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
{
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";
inputs.nixpkgs.follows = "nixpkgs";
};
# Nix user repository
nur = {
url = "github:nix-community/NUR";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-parts.follows = "flake-parts";
};
};
# 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;
};
# Niri compositor
# Provides a binary cache, so do not follow inputs
niri.url = "github:sodiboo/niri-flake";
# 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
# Provides a binary cache, so do not follow inputs
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
# Provides a binary cache, so do not follow inputs
nix-gaming.url = "github:fufexan/nix-gaming";
# Spotify customization
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
# Discord customization
nixcord = {
url = "github:KaylorBen/nixcord";
inputs.nixpkgs.follows = "nixpkgs";
};
# Widget framework
ignis = {
url = "github:linkfrg/ignis";
inputs.nixpkgs.follows = "nixpkgs";
};
# Yazi plugins
nix-yazi-plugins = {
# url = "github:lordkekz/nix-yazi-plugins";
url = "github:Anomalocaridid/nix-yazi-plugins/extraconfig-option";
inputs.nixpkgs.follows = "nixpkgs";
};
# Fish exercism wrapper
exercism-cli-fish-wrapper = {
url = "github:glennj/exercism-cli-fish-wrapper";
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;
};
};
};
}