fix: Slack overlay for wayland issues
This commit is contained in:
@@ -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"
|
||||||
|
'';
|
||||||
|
}))
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
../../modules
|
../../modules
|
||||||
# ./aichat.nix
|
./aichat.nix
|
||||||
./atuin.nix
|
./atuin.nix
|
||||||
./bat.nix
|
./bat.nix
|
||||||
./carapace.nix
|
./carapace.nix
|
||||||
|
|||||||
@@ -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" {};
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user