fix: Slack overlay for wayland issues
This commit is contained in:
@@ -4,6 +4,17 @@
|
||||
...
|
||||
}: {
|
||||
home.packages = lib.optionals pkgs.stdenv.isLinux [
|
||||
pkgs.slack
|
||||
(pkgs.slack.overrideAttrs (old: {
|
||||
installPhase =
|
||||
old.installPhase
|
||||
+ ''
|
||||
rm $out/bin/slack
|
||||
|
||||
makeWrapper $out/lib/slack/slack $out/bin/slack \
|
||||
--prefix XDG_DATA_DIRS : $GSETTINGS_SCHEMAS_PATH \
|
||||
--prefix PATH : ${lib.makeBinPath [pkgs.xdg-utils]} \
|
||||
--add-flags "--enable-features=WebRTCPipeWireCapturer %U"
|
||||
'';
|
||||
}))
|
||||
];
|
||||
}
|
||||
|
||||
@@ -5,8 +5,10 @@
|
||||
secrets."openrouter/api_key" = {};
|
||||
secrets."gemini/api_key" = {};
|
||||
};
|
||||
imports = [../../modules/aichat.nix];
|
||||
programs.aichat = {
|
||||
imports = [
|
||||
../../modules/aichat.nix
|
||||
];
|
||||
programs.mayichat = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
enableNushellIntegration = false;
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
}: {
|
||||
imports = [
|
||||
../../modules
|
||||
# ./aichat.nix
|
||||
./aichat.nix
|
||||
./atuin.nix
|
||||
./bat.nix
|
||||
./carapace.nix
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.programs.aichat;
|
||||
cfg = config.programs.mayichat;
|
||||
yamlFormat = pkgs.formats.yaml {};
|
||||
fishIntegration = ''
|
||||
function _aichat_fish
|
||||
@@ -64,7 +64,7 @@ with lib; let
|
||||
'';
|
||||
in {
|
||||
options = {
|
||||
programs.aichat = {
|
||||
programs.mayichat = {
|
||||
enable = mkEnableOption "aichat";
|
||||
package = mkPackageOption pkgs "aichat" {};
|
||||
|
||||
|
||||
@@ -505,7 +505,7 @@ in {
|
||||
settings = {
|
||||
sources = {
|
||||
cmdline = [];
|
||||
default = ["dictionary" "path" "lsp" "buffer"];
|
||||
default = ["lsp" "dictionary" "snippets" "path" "buffer"];
|
||||
providers = {
|
||||
buffer = {
|
||||
score_offset = -7;
|
||||
|
||||
Reference in New Issue
Block a user