fix: Slack overlay for wayland issues

This commit is contained in:
uttarayan21
2025-06-19 13:31:57 +05:30
parent 5daeab59d3
commit fee8fd0b0c
5 changed files with 20 additions and 7 deletions

View File

@@ -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"
'';
}))
];
}

View File

@@ -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;

View File

@@ -5,7 +5,7 @@
}: {
imports = [
../../modules
# ./aichat.nix
./aichat.nix
./atuin.nix
./bat.nix
./carapace.nix

View File

@@ -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" {};

View File

@@ -505,7 +505,7 @@ in {
settings = {
sources = {
cmdline = [];
default = ["dictionary" "path" "lsp" "buffer"];
default = ["lsp" "dictionary" "snippets" "path" "buffer"];
providers = {
buffer = {
score_offset = -7;