gpt4all 3.9.0 and cleanup

This commit is contained in:
Simon Gardling 2025-02-05 21:56:54 -05:00
parent 69297e60af
commit 934a0dc51f
Signed by: titaniumtown
GPG Key ID: 9AB28AC10ECE533D
2 changed files with 17 additions and 5 deletions

View File

@ -46,8 +46,6 @@
homeDirectory = "/home/${username}"; homeDirectory = "/home/${username}";
hostname = nixpkgs.lib.strings.removeSuffix "\n" (builtins.readFile /etc/hostname); hostname = nixpkgs.lib.strings.removeSuffix "\n" (builtins.readFile /etc/hostname);
pkgs = import nixpkgs { };
# stolen from: https://stackoverflow.com/a/42398526 # stolen from: https://stackoverflow.com/a/42398526
optimizeWithFlags = optimizeWithFlags =
pkg: flags: pkg: flags:
@ -62,6 +60,19 @@
stdenv = pkgs.clang19Stdenv; stdenv = pkgs.clang19Stdenv;
} }
); );
pkgs' = (import nixpkgs { }).applyPatches {
name = "gpt4all 3.9.0";
src = inputs.nixpkgs;
patches = [
(builtins.fetchurl {
url = "https://github.com/NixOS/nixpkgs/pull/372723.diff";
sha256 = "1zzrs058i9p89qy8r22n8i5wff5s0s6w56c7d37nvs6b0jwp5qhm";
})
];
};
pkgs = (import pkgs' { });
in in
{ {
homeConfigurations.${username} = home-manager.lib.homeManagerConfiguration { homeConfigurations.${username} = home-manager.lib.homeManagerConfiguration {

View File

@ -35,13 +35,12 @@
:onchange command) :onchange command)
(label :text "${value}%" :class color))) (label :text "${value}%" :class color)))
(defpoll windowtitle :interval "1s" `scripts/currentWindow.fish`)
(defwidget window-title [] (defwidget window-title []
(label (label
:text "${windowtitle == "" ? "" : "(${windowtitle})"}")) :text "${windowtitle == "" ? "" : "(${windowtitle})"}"))
(defpoll windowtitle :interval "1s" `scripts/currentWindow.fish`)
(defpoll currentworkspace :interval "1s" `scripts/currentWorkspace.fish`)
(defwidget brightness-ctl [] (defwidget brightness-ctl []
(box :visible brightnessctl-open (box :visible brightnessctl-open
(cmd-slider :symbol "󰃠" :value brightness (cmd-slider :symbol "󰃠" :value brightness
@ -135,3 +134,5 @@
(label :text "${volumevalue.count}%" :class "${volumevalue.color}"))) (label :text "${volumevalue.count}%" :class "${volumevalue.color}")))
(defpoll currentworkspace :interval "1s" `scripts/currentWorkspace.fish`)