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"
|
"rust-overlay": "rust-overlay_6"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1771950770,
|
"lastModified": 1772623144,
|
||||||
"narHash": "sha256-c1AQ5sMPbXHe68u+W8gNqetAu9+jzyrOtvKOfAnFRx4=",
|
"narHash": "sha256-twm2v0cmLEmad0pVs2xF1o0e+M/SxoZkVnLXbb7BTDU=",
|
||||||
"owner": "uttarayan21",
|
"owner": "uttarayan21",
|
||||||
"repo": "nixify",
|
"repo": "nixify",
|
||||||
"rev": "4f4aad61bc0ef774adb87192de0aa09116eb8dfe",
|
"rev": "513221f2d4f2ab195c27cb35d1e8904969a748e7",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -52,9 +52,13 @@
|
|||||||
khal = {
|
khal = {
|
||||||
enable = true;
|
enable = true;
|
||||||
addresses = ["email@uttarayan.me"];
|
addresses = ["email@uttarayan.me"];
|
||||||
|
type = "discover";
|
||||||
};
|
};
|
||||||
vdirsyncer = {
|
vdirsyncer = {
|
||||||
enable = true;
|
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";
|
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 "@"
|
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 = {
|
pins = {
|
||||||
|
|||||||
@@ -2,5 +2,6 @@
|
|||||||
programs.khal.enable = true;
|
programs.khal.enable = true;
|
||||||
programs.qcal.enable = true;
|
programs.qcal.enable = true;
|
||||||
programs.vdirsyncer.enable = true;
|
programs.vdirsyncer.enable = true;
|
||||||
|
services.vdirsyncer.enable = true;
|
||||||
accounts.calendar.accounts.fastmail.qcal.enable = true;
|
accounts.calendar.accounts.fastmail.qcal.enable = true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -46,14 +46,14 @@
|
|||||||
};
|
};
|
||||||
home.shell.enableFishIntegration = true;
|
home.shell.enableFishIntegration = true;
|
||||||
|
|
||||||
programs.bash = {
|
# programs.bash = {
|
||||||
enable = true;
|
# enable = true;
|
||||||
initExtra = ''
|
# initExtra = ''
|
||||||
if [[ $- == *i* && -z "$FISH_VERSION" ]]; then
|
# if [[ $- == *i* && -z "$FISH_VERSION" ]]; then
|
||||||
exec ${lib.getExe pkgs.fish}
|
# ${lib.getExe pkgs.fish}
|
||||||
fi
|
# fi
|
||||||
'';
|
# '';
|
||||||
};
|
# };
|
||||||
}
|
}
|
||||||
// lib.optionalAttrs (!(device.is "tsuba")) {
|
// lib.optionalAttrs (!(device.is "tsuba")) {
|
||||||
stylix.targets.fish.enable = false;
|
stylix.targets.fish.enable = false;
|
||||||
|
|||||||
@@ -22,5 +22,6 @@
|
|||||||
./foot.nix
|
./foot.nix
|
||||||
./ddcutil.nix
|
./ddcutil.nix
|
||||||
./libnotify.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