fish
This commit is contained in:
@ -10,6 +10,7 @@
|
||||
clean.extraArgs = "--keep-since 7d --keep 3";
|
||||
flake = "/home/user/.config/nixos";
|
||||
};
|
||||
programs.fish.enable = true;
|
||||
environment.systemPackages = with pkgs; [
|
||||
helix
|
||||
nushell
|
||||
|
@ -4,7 +4,7 @@
|
||||
user = {
|
||||
isNormalUser = true;
|
||||
extraGroups = ["wheel" "video" "libvirtd" "dialout"];
|
||||
shell = pkgs.nushell;
|
||||
shell = pkgs.fish;
|
||||
};
|
||||
# work = {
|
||||
# isNormalUser = true;
|
||||
|
@ -1,6 +1,7 @@
|
||||
{pkgs, ...}: {
|
||||
shell = {
|
||||
nushell.enable = true;
|
||||
fish.enable = true;
|
||||
nushell.enable = false;
|
||||
oh-my-posh.enable = true;
|
||||
};
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
{
|
||||
imports = [./nushell.nix ./oh-my-posh.nix];
|
||||
imports = [./nushell.nix ./fish.nix ./oh-my-posh.nix];
|
||||
}
|
||||
|
55
modules/home/programs/shell/fish.nix
Normal file
55
modules/home/programs/shell/fish.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.shell.fish;
|
||||
in {
|
||||
options = {
|
||||
shell.fish.enable =
|
||||
mkEnableOption "enable fish";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs = {
|
||||
# atuin = {
|
||||
# enable = true;
|
||||
# flags = [
|
||||
# "--disable-up-arrow"
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
eza.enable = true;
|
||||
zoxide.enable = true;
|
||||
keychain = {
|
||||
enable = true;
|
||||
keys = ["id_ed25519"];
|
||||
extraFlags = [
|
||||
"--quiet"
|
||||
"--noask"
|
||||
];
|
||||
};
|
||||
fish = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
# cd = "z";
|
||||
cat = "bat";
|
||||
la = "ls -a";
|
||||
l = "ls -la";
|
||||
};
|
||||
interactiveShellInit = ''
|
||||
set fish_greeting
|
||||
set fish_cursor_default block blink
|
||||
set fish_cursor_insert line blink
|
||||
set fish_cursor_replace_one underscore blink
|
||||
set fish_cursor_visual block
|
||||
|
||||
function fish_user_key_bindings
|
||||
fish_default_key_bindings -M insert
|
||||
fish_vi_key_bindings --no-erase insert
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user