feat: Generate completions for fish and sync khal properly

This commit is contained in:
2026-03-04 17:43:52 +05:30
parent 7b86a1cb21
commit 7caf921746
7 changed files with 53 additions and 11 deletions

View File

@@ -52,9 +52,13 @@
khal = {
enable = true;
addresses = ["email@uttarayan.me"];
type = "discover";
};
vdirsyncer = {
enable = true;
conflictResolution = "remote wins";
collections = ["from a"];
metadata = ["color" "displayname"];
};
};
};

View File

@@ -86,6 +86,36 @@
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = ["@nx"]; # Keep in mind that aliases defined here only work if they start with "@"
};
hm = {
name = "Home Manager Options";
urls = [
{
template = "https://home-manager-options.extranix.com/?query={searchTerms}&release=master";
params = [
{
name = "query";
value = "searchTerms";
}
];
}
];
definedAliases = ["@hm"];
};
nv = {
name = "NixVim";
urls = [
{
template = "https://nix-community.github.io/nixvim/search/?query={searchTerms}";
params = [
{
name = "query";
value = "searchTerms";
}
];
}
];
definedAliases = ["@nv"];
};
};
};
pins = {

View File

@@ -2,5 +2,6 @@
programs.khal.enable = true;
programs.qcal.enable = true;
programs.vdirsyncer.enable = true;
services.vdirsyncer.enable = true;
accounts.calendar.accounts.fastmail.qcal.enable = true;
}

View File

@@ -46,14 +46,14 @@
};
home.shell.enableFishIntegration = true;
programs.bash = {
enable = true;
initExtra = ''
if [[ $- == *i* && -z "$FISH_VERSION" ]]; then
exec ${lib.getExe pkgs.fish}
fi
'';
};
# programs.bash = {
# enable = true;
# initExtra = ''
# if [[ $- == *i* && -z "$FISH_VERSION" ]]; then
# ${lib.getExe pkgs.fish}
# fi
# '';
# };
}
// lib.optionalAttrs (!(device.is "tsuba")) {
stylix.targets.fish.enable = false;