Something went wrong. Try again.
A mirror of my nix flake (includes more than servers).
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ lib, config, pkgs, ...}:
let cfg = config.l.fish;in{ options.l.fish.enable = lib.mkEnableOption "Enable fish"; options.l.fish.defaultShell = lib.mkEnableOption "Enable fish as default shell"; config = lib.mkIf cfg.enable { l.starship.enable = true; programs.direnv = { enable = true; silent = false; loadInNixShell = true; direnvrcExtra = ""; nix-direnv = { enable = true; }; };
users.users.${config.l.home.username}.shell = lib.mkIf cfg.defaultShell pkgs.fish;
programs.fish.enable = true; home-manager.users.${config.l.home.username} = { home.packages = with pkgs; [ eza ripgrep fd xe ];
programs.fzf.enable = true; programs.zoxide.enable = true;
programs.fish = { enable = true; shellInit = '' set -a PATH ~/.cargo/bin/ '';
interactiveShellInit = '' set fish_greeting "" starship init fish | source fish_vi_key_bindings alias ls="eza -a --icons --color=always --group-directories-first" alias ll="eza -la --icons --color=always --group-directories-first" direnv hook fish | source zoxide init fish | source ''; }; }; };}