This commit is contained in:
unexplrd
2025-02-19 21:15:09 +02:00
parent 267b293b0b
commit 2380f7be67
5 changed files with 60 additions and 3 deletions

View File

@ -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

View File

@ -4,7 +4,7 @@
user = {
isNormalUser = true;
extraGroups = ["wheel" "video" "libvirtd" "dialout"];
shell = pkgs.nushell;
shell = pkgs.fish;
};
# work = {
# isNormalUser = true;

View File

@ -1,6 +1,7 @@
{pkgs, ...}: {
shell = {
nushell.enable = true;
fish.enable = true;
nushell.enable = false;
oh-my-posh.enable = true;
};

View File

@ -1,3 +1,3 @@
{
imports = [./nushell.nix ./oh-my-posh.nix];
imports = [./nushell.nix ./fish.nix ./oh-my-posh.nix];
}

View 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
'';
};
};
};
}