feat: Generate completions for fish and sync khal properly
This commit is contained in:
6
flake.lock
generated
6
flake.lock
generated
@@ -1765,11 +1765,11 @@
|
||||
"rust-overlay": "rust-overlay_6"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1771950770,
|
||||
"narHash": "sha256-c1AQ5sMPbXHe68u+W8gNqetAu9+jzyrOtvKOfAnFRx4=",
|
||||
"lastModified": 1772623144,
|
||||
"narHash": "sha256-twm2v0cmLEmad0pVs2xF1o0e+M/SxoZkVnLXbb7BTDU=",
|
||||
"owner": "uttarayan21",
|
||||
"repo": "nixify",
|
||||
"rev": "4f4aad61bc0ef774adb87192de0aa09116eb8dfe",
|
||||
"rev": "513221f2d4f2ab195c27cb35d1e8904969a748e7",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -22,5 +22,6 @@
|
||||
./foot.nix
|
||||
./ddcutil.nix
|
||||
./libnotify.nix
|
||||
./fish.nix
|
||||
];
|
||||
}
|
||||
|
||||
6
nixos/ryu/programs/fish.nix
Normal file
6
nixos/ryu/programs/fish.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{...}: {
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
generateCompletions = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user