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 [ 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."openrouter/api_key" = {};
secrets."gemini/api_key" = {}; secrets."gemini/api_key" = {};
}; };
imports = [../../modules/aichat.nix]; imports = [
programs.aichat = { ../../modules/aichat.nix
];
programs.mayichat = {
enable = true; enable = true;
enableFishIntegration = true; enableFishIntegration = true;
enableNushellIntegration = false; enableNushellIntegration = false;

View File

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

View File

@@ -5,7 +5,7 @@
... ...
}: }:
with lib; let with lib; let
cfg = config.programs.aichat; cfg = config.programs.mayichat;
yamlFormat = pkgs.formats.yaml {}; yamlFormat = pkgs.formats.yaml {};
fishIntegration = '' fishIntegration = ''
function _aichat_fish function _aichat_fish
@@ -64,7 +64,7 @@ with lib; let
''; '';
in { in {
options = { options = {
programs.aichat = { programs.mayichat = {
enable = mkEnableOption "aichat"; enable = mkEnableOption "aichat";
package = mkPackageOption pkgs "aichat" {}; package = mkPackageOption pkgs "aichat" {};

View File

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