nix fmt rfc

This commit is contained in:
Christoph Hollizeck 2024-04-04 19:31:55 +02:00
parent c42abbc902
commit c549839b19
42 changed files with 438 additions and 352 deletions

View file

@ -6,44 +6,43 @@
...
}:
with lib;
with lib.wyrdgard; let
with lib.wyrdgard;
let
cfg = config.wyrdgard.apps.cli-apps.fish;
in {
in
{
options.wyrdgard.apps.cli-apps.fish = with types; {
enable = mkBoolOpt true "Whether or not to enable the fish shell";
};
config =
mkIf cfg.enable {
home.packages = with pkgs.fishPlugins; [
forgit
sponge
];
config = mkIf cfg.enable {
home.packages = with pkgs.fishPlugins; [
forgit
sponge
];
programs = {
fish = {
enable = true;
shellInit = "
programs = {
fish = {
enable = true;
shellInit = "
zoxide init fish | source
direnv hook fish | source
source ~/.config/op/plugins.sh
";
shellAliases = {
vim = "nvim";
ls = "colorls --gs";
l = "ls -l";
la = "ls -a";
lla = "ls -la";
lt = "ls --tree";
};
};
zoxide = {
enable = true;
options = [
"--cmd cd"
];
shellAliases = {
vim = "nvim";
ls = "colorls --gs";
l = "ls -l";
la = "ls -a";
lla = "ls -la";
lt = "ls --tree";
};
};
zoxide = {
enable = true;
options = [ "--cmd cd" ];
};
};
};
}