blob: 19145eeb3bf566f390deffaa050900903bec009b (
plain)
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
|
# This file defines overlays
# The following overlays must still be included in each system's respective nixpkgs.overlays (i.e. vim hosts/*/default.nix )
#
# nixpkgs.overlays = [
# outputs.overlays.additions
# outputs.overlays.modifications
# outputs.overlays."67e692392-packages"
# outputs.overlays.kerneol-packages
# outputs.overlays.master-packages
# outputs.overlays.my-nixpkgs
# outputs.overlays.pr545346-packages
# outputs.overlays.stable-packages
# outputs.overlays.staging-packages
# outputs.overlays.wine9_22-packages
# ]
{inputs, ...}: {
# This one brings our custom packages from the 'pkgs' directory
additions = final: _prev: import ../pkgs final.pkgs;
# This one contains whatever you want to overlay
# You can change versions, add patches, set compilation flags, anything really.
# https://nixos.wiki/wiki/Overlays
modifications = final: prev: {
# example = prev.example.overrideAttrs (oldAttrs: rec {
# ...
# });
#ghostty = prev.ghostty.overrideAttrs (_: {
# preBuild = ''
# shopt -s globstar
# sed -i 's/^const xev = @import("xev");$/const xev = @import("xev").Epoll;/' **/*.zig
# shopt -u globstar
# '';
#});
#linux-firmware = prev.linux-firmware.overrideAttrs (old: rec {
# pname = "linux-firmware";
# version = "20250708";
# src = prev.fetchFromGitLab {
# owner = "kernel-firmware";
# repo = "linux-firmware";
# rev = "99d64b4f788c16e81b6550ef94f43c6b91cfad2d";
# hash = "sha256-TJ97A9I0ipsqgg7ex3pAQgdhDJcLbkNCvuLppt9a07o=";
# };
#});
# to compute this hash, use: nix flake prefetch ${url}
# because fetchzip computes the hash of the NAR basically instead of the flat file when doing: nix-hash --base64 --flat --sri --type sha256 ${file}
proton-ge-bin = prev.proton-ge-bin.overrideAttrs (old: rec {
pname = "proton-ge-bin";
src = prev.fetchzip {
hash = "sha256-RiCmnUKeZRhPUCgm7fsROKFkAl37+/tYkA47tQtkIF4=";
url = "https://github.com/GloriousEggroll/proton-ge-custom/releases/download/${version}/${version}.tar.gz";
};
version = "GE-Proton11-3";
});
reaper = prev.reaper.overrideAttrs (old: rec {
pname = "reaper";
src = prev.fetchurl {
hash = "sha256-1mLrNdyrf9LOX6xqYJITYu8DPi0HXHTM75dPu9E6ZUI=";
url = "https://www.reaper.fm/files/${inputs.nixpkgs.lib.versions.major version}.x/reaper${inputs.nixpkgs.lib.versions.major version}${inputs.nixpkgs.lib.versions.minor version}_linux_x86_64.tar.xz";
};
version = "7.78";
});
};
#"67e692392-packages" = final: _prev: {
# "67e692392" = import inputs.nixpkgs-67e692392 {
# inherit (final);
# config.allowUnfree = true;
# localSystem = final.stdenv.hostPlatform;
# };
#};
# When applied, the kerneol nixpkgs set (declared in the flake inputs) will
# be accessible through 'pkgs.kerneol'
kerneol-packages = final: _prev: {
kerneol = import inputs.nixpkgs-kerneol {
inherit (final);
config.allowUnfree = true;
localSystem = final.stdenv.hostPlatform;
};
};
# When applied, the master nixpkgs set (declared in the flake inputs) will
# be accessible through 'pkgs.master'
master-packages = final: _prev: {
master = import inputs.nixpkgs-master {
inherit (final);
config.allowUnfree = true;
localSystem = final.stdenv.hostPlatform;
};
};
#my-nixpkgs-packages = final: _prev: {
# my-nixpkgs = import inputs.my-nixpkgs {
# inherit (final);
# config.allowUnfree = true;
# localSystem = final.stdenv.hostPlatform;
# };
#};
#pr545346-packages = final: _prev: {
# pr545346 = import inputs.nixpkgs-pr545346 {
# inherit (final);
# config.allowUnfree = true;
# localSystem = final.stdenv.hostPlatform;
# };
#};
# When applied, the stable nixpkgs set (declared in the flake inputs) will
# be accessible through 'pkgs.stable'
stable-packages = final: _prev: {
stable = import inputs.nixpkgs-stable {
inherit (final);
config.allowUnfree = true;
localSystem = final.stdenv.hostPlatform;
};
};
# When applied, the staging nixpkgs set (declared in the flake inputs) will
# be accessible through 'pkgs.staging'
#staging-packages = final: _prev: {
# staging = import inputs.nixpkgs-staging {
# inherit (final);
# config.allowUnfree = true;
# localSystem = final.stdenv.hostPlatform;
# };
#};
#"wine9_22-packages" = final: _prev: {
# "wine9_22" = import inputs.nixpkgs-wine9_22 {
# inherit (final);
# config.allowUnfree = true;
# localSystem = final.stdenv.hostPlatform;
# };
#};
}
|