fix gpt4all
This commit is contained in:
parent
fddb34888a
commit
705e31e76c
64
etcnixos/flake.lock
generated
64
etcnixos/flake.lock
generated
@ -41,7 +41,6 @@
|
|||||||
},
|
},
|
||||||
"chaotic": {
|
"chaotic": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"fenix": "fenix",
|
|
||||||
"flake-schemas": "flake-schemas",
|
"flake-schemas": "flake-schemas",
|
||||||
"home-manager": "home-manager_2",
|
"home-manager": "home-manager_2",
|
||||||
"jovian": "jovian",
|
"jovian": "jovian",
|
||||||
@ -50,11 +49,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1728835058,
|
"lastModified": 1729092978,
|
||||||
"narHash": "sha256-GbcJ90E8+wBkBh9C1HxBTwKsOkGU41CRaPrd1ksFPtA=",
|
"narHash": "sha256-2SMJFFgKSvrQfkfzdcYjwFGvgeoCtDdbl/CGZNIU7hs=",
|
||||||
"owner": "chaotic-cx",
|
"owner": "chaotic-cx",
|
||||||
"repo": "nyx",
|
"repo": "nyx",
|
||||||
"rev": "ec6b449d3d096a0e79db5f8c4a321ea9ec836e40",
|
"rev": "9af42c96e8d666f1df2b087aba1a6349f1c22f4e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -101,28 +100,6 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"fenix": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"chaotic",
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"rust-analyzer-src": "rust-analyzer-src"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1728455642,
|
|
||||||
"narHash": "sha256-abYGwrL6ak5sBRqwPh+V3CPJ6Pa89p378t51b7BO1lE=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "fenix",
|
|
||||||
"rev": "3b47535a5c782e4f4ad59cd4bdb23636b6926e03",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "fenix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-compat": {
|
"flake-compat": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
@ -225,11 +202,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1728337164,
|
"lastModified": 1728903686,
|
||||||
"narHash": "sha256-VdRTjJFyq4Q9U7Z/UoC2Q5jK8vSo6E86lHc2OanXtvc=",
|
"narHash": "sha256-ZHFrGNWDDriZ4m8CA/5kDa250SG1LiiLPApv1p/JF0o=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "038630363e7de57c36c417fd2f5d7c14773403e4",
|
"rev": "e1aec543f5caf643ca0d94b6a633101942fd065f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -247,11 +224,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1728410210,
|
"lastModified": 1728974938,
|
||||||
"narHash": "sha256-vn6qupt1U0M6Hf3eXhK3/K4Du0Z7A60qYS1G14QsRY8=",
|
"narHash": "sha256-pTPEx6WlM+nJVGrRUGx7Di4ljZMwE9HfvlZ6f3NzNfo=",
|
||||||
"owner": "Jovian-Experiments",
|
"owner": "Jovian-Experiments",
|
||||||
"repo": "Jovian-NixOS",
|
"repo": "Jovian-NixOS",
|
||||||
"rev": "a25f915ec05196d15e3f7f8555ffb612d4f1045d",
|
"rev": "23170582b0658e6afd913149a58863af3a57b376",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -272,11 +249,11 @@
|
|||||||
"rust-overlay": "rust-overlay"
|
"rust-overlay": "rust-overlay"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1729028850,
|
"lastModified": 1729064530,
|
||||||
"narHash": "sha256-eOhjiU+3TCaSYZESYhU2ZTUQKrBcer9cQ/XpVkergAg=",
|
"narHash": "sha256-oSr/w/5dvf/8ll6NvQlL7+rrK8wzjIcEMP1LvI4Ag08=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "lanzaboote",
|
"repo": "lanzaboote",
|
||||||
"rev": "bd01eac8c7cfa9b7e25304f0e7f0fed80de63f9d",
|
"rev": "2fa1368f938b50e35ca87334b5aeba38a3402165",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -393,23 +370,6 @@
|
|||||||
"nixpkgs": "nixpkgs"
|
"nixpkgs": "nixpkgs"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"rust-analyzer-src": {
|
|
||||||
"flake": false,
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1728386838,
|
|
||||||
"narHash": "sha256-Lk64EoJkvp3WMGVJK3CR1TYcNghX0/BqHPLW5zdvmLE=",
|
|
||||||
"owner": "rust-lang",
|
|
||||||
"repo": "rust-analyzer",
|
|
||||||
"rev": "efaf8bd5de34e2f47bd57425b83e0c7974902176",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "rust-lang",
|
|
||||||
"ref": "nightly",
|
|
||||||
"repo": "rust-analyzer",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"rust-overlay": {
|
"rust-overlay": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"nixpkgs": [
|
"nixpkgs": [
|
||||||
|
|||||||
12
home-manager/flake.lock
generated
12
home-manager/flake.lock
generated
@ -98,11 +98,11 @@
|
|||||||
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
"xwayland-satellite-unstable": "xwayland-satellite-unstable"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1729023891,
|
"lastModified": 1729090125,
|
||||||
"narHash": "sha256-8NCqlnMnKldeLEWUyXG8UYbu1Wx2wctsA3+fFnMhNO4=",
|
"narHash": "sha256-jZQe55BWLEv6OwItbL7mMsm8A3/1rrLk4vTm3k7+jqg=",
|
||||||
"owner": "sodiboo",
|
"owner": "sodiboo",
|
||||||
"repo": "niri-flake",
|
"repo": "niri-flake",
|
||||||
"rev": "7084b0221f3dec7ea1f1c5203d9e389eb9908d07",
|
"rev": "44d93e05a400cad197fd10f9d50e9475fc519326",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -131,11 +131,11 @@
|
|||||||
"niri-unstable": {
|
"niri-unstable": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1728979917,
|
"lastModified": 1729086716,
|
||||||
"narHash": "sha256-NWt6gwVP6072BcV2FvuZD8fikyDcT5WSBrs+6w9hTsk=",
|
"narHash": "sha256-xF1AtbQ+ipQyzyXV8mWGlndbeqACM3IIadyCHO0OtpU=",
|
||||||
"owner": "YaLTeR",
|
"owner": "YaLTeR",
|
||||||
"repo": "niri",
|
"repo": "niri",
|
||||||
"rev": "a13b9298c66f45e571533731e2a690a23534df01",
|
"rev": "84655d3b2627687e14431adb49450cd6af1de40f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
./progs/alacritty.nix
|
./progs/alacritty.nix
|
||||||
|
|
||||||
# gpt4all broken https://github.com/NixOS/nixpkgs/pull/346185
|
# gpt4all broken https://github.com/NixOS/nixpkgs/pull/346185
|
||||||
# ./progs/gpt4all/gpt4all.nix
|
./progs/gpt4all/gpt4all.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config.allowUnfreePredicate =
|
nixpkgs.config.allowUnfreePredicate =
|
||||||
|
|||||||
@ -35,6 +35,7 @@
|
|||||||
}
|
}
|
||||||
))
|
))
|
||||||
cargo-expand
|
cargo-expand
|
||||||
|
rust-script
|
||||||
|
|
||||||
# find typos in code
|
# find typos in code
|
||||||
typos
|
typos
|
||||||
@ -117,20 +118,18 @@
|
|||||||
nil # nix lsp
|
nil # nix lsp
|
||||||
yaml-language-server # yaml lsp
|
yaml-language-server # yaml lsp
|
||||||
marksman # markdown lsp
|
marksman # markdown lsp
|
||||||
|
typescript-language-server # typescript lsp
|
||||||
|
|
||||||
# clang-format and clang-tidy
|
# clang-format and clang-tidy
|
||||||
clang-tools
|
clang-tools
|
||||||
|
clang
|
||||||
lldb
|
lldb
|
||||||
|
|
||||||
fio
|
fio
|
||||||
|
|
||||||
age
|
age
|
||||||
|
|
||||||
git-crypt
|
git-crypt
|
||||||
|
|
||||||
clang
|
|
||||||
|
|
||||||
imagemagick
|
imagemagick
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -49,6 +49,8 @@ in
|
|||||||
nix-cleanup = "doas nix-collect-garbage --delete-older-than 1d && doas nix-store --optimise && doas nix-store --gc";
|
nix-cleanup = "doas nix-collect-garbage --delete-older-than 1d && doas nix-store --optimise && doas nix-store --gc";
|
||||||
|
|
||||||
gcc-native = "${pkgs.gcc}/bin/gcc -Q --help=target -mtune=native -march=native | ${pkgs.gnugrep}/bin/grep -E '(mtune|march)=' | ${pkgs.gnugrep}/bin/grep -v 'Known valid arguments' | ${pkgs.gnused}/bin/sed -E \"s/[[:space:]]+//g\"";
|
gcc-native = "${pkgs.gcc}/bin/gcc -Q --help=target -mtune=native -march=native | ${pkgs.gnugrep}/bin/grep -E '(mtune|march)=' | ${pkgs.gnugrep}/bin/grep -v 'Known valid arguments' | ${pkgs.gnused}/bin/sed -E \"s/[[:space:]]+//g\"";
|
||||||
|
|
||||||
|
chess = "${pkgs.chess-tui} -e ${pkgs.stockfish}/bin/stockfish";
|
||||||
};
|
};
|
||||||
|
|
||||||
shellInit = ''
|
shellInit = ''
|
||||||
|
|||||||
@ -29,13 +29,13 @@ let
|
|||||||
gpt4all_package = (
|
gpt4all_package = (
|
||||||
optimizeWithFlags
|
optimizeWithFlags
|
||||||
(pkgs.gpt4all.overrideAttrs (old: {
|
(pkgs.gpt4all.overrideAttrs (old: {
|
||||||
version = "3.4.1";
|
version = "3.4.2";
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
owner = "nomic-ai";
|
owner = "nomic-ai";
|
||||||
repo = "gpt4all";
|
repo = "gpt4all";
|
||||||
rev = "v3.4.1";
|
rev = "v3.4.2";
|
||||||
sha256 = "L29ZQlDDJlh538cgAGuo/ijtBQvZ0vloH4vdJ1oIe5I=";
|
sha256 = "QzU22y6tt3UhazVSPcFuKejH4AV+mw7JExH61NtAKoM=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cmakeFlags = old.cmakeFlags ++ [
|
cmakeFlags = old.cmakeFlags ++ [
|
||||||
@ -46,12 +46,18 @@ let
|
|||||||
patches = old.patches ++ [
|
patches = old.patches ++ [
|
||||||
./disable-settings-err.patch
|
./disable-settings-err.patch
|
||||||
./disable-version-check.patch
|
./disable-version-check.patch
|
||||||
|
(pkgs.fetchpatch {
|
||||||
|
url = "https://aur.archlinux.org/cgit/aur.git/plain/004-fix-build-with-qt-6.8.0.diff?h=gpt4all-chat&id=d14b12cb63fae95e578aa839a570189a23833051";
|
||||||
|
sha256 = "3Zur9KFn45f4dgAzOF7p1q42IdLqXwioN4zMiBbWbVU=";
|
||||||
|
stripLen = 1;
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
}))
|
}))
|
||||||
# compile flags
|
# compile flags
|
||||||
[
|
[
|
||||||
"-Ofast"
|
"-O3"
|
||||||
|
"-ffast-math"
|
||||||
"-march=native"
|
"-march=native"
|
||||||
"-mtune=native"
|
"-mtune=native"
|
||||||
"-fno-finite-math-only" # https://github.com/ggerganov/llama.cpp/pull/7154#issuecomment-2143844461
|
"-fno-finite-math-only" # https://github.com/ggerganov/llama.cpp/pull/7154#issuecomment-2143844461
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user