-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnixpkgs.nix
53 lines (52 loc) · 1.19 KB
/
nixpkgs.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
{
inputs,
inputs',
system,
...
}:
let
inherit (inputs.nixpkgs) lib;
# nixpkgs overlays
overlays = with inputs; [
# fix fastfetch
(final: prev: {
fastfetch = prev.fastfetch.overrideAttrs (oldAttrs: {
buildInputs =
if system == "x86_64-linux" then
oldAttrs.buildInputs ++ [ prev.directx-headers ]
else
oldAttrs.buildInputs;
cmakeFlags =
if system == "x86_64-linux" then
oldAttrs.cmakeFlags ++ [ (lib.cmakeBool "ENABLE_DIRECTX_HEADERS" true) ]
else
oldAttrs.cmakeFlags;
});
})
#bind packages need overlay
(final: prev: {
nvim = prev.neovim;
nh = inputs'.nh.packages.default;
agenix = inputs'.agenix.packages.default;
# fish4.0b
fish = inputs'.nixpkgs-fish.legacyPackages.fish;
})
# my nur overlays
cloudtide.overlay
#rust toolchain
fenix.overlays.default
#neovim-nightly
neovim-nightly-overlay.overlays.default
#mbt toolchain
moonbit-overlay.overlays.default
#yazi
yazi.overlays.default
];
in
{
nixpkgs = {
inherit overlays;
hostPlatform = system;
config.allowUnfree = true;
};
}