Switch to fish.

This commit is contained in:
2024-09-13 18:19:25 +01:00
parent 79970e1567
commit 2d8f4c56dd
4 changed files with 26 additions and 53 deletions

View File

@@ -1,10 +1,7 @@
{ pkgs, ... }:
let
packages = import ./packages.nix { inherit pkgs; };
in
{
home = {
inherit packages;
packages = (import ./packages.nix { inherit pkgs; }).packages;
stateVersion = "24.05"; # TODO: unify this with the references in flake.nix:inputs
sessionVariables = {
@@ -23,10 +20,10 @@ in
".ssh"
"projects"
];
files = [ ];
files = [ ".local/share/fish/fish_history" ];
allowOther = true;
};
};
programs = import ./programs.nix;
programs = import ./programs.nix { inherit pkgs; };
}

View File

@@ -1,13 +1,17 @@
{ pkgs }:
let
nixTools = with pkgs; [
git
home-manager
mosh
tmux
vim
zsh
];
in
nixTools
{
packages =
with pkgs;
[
git
home-manager
mosh
tmux
vim
zsh
]
++ (with pkgs.fishPlugins; [
# don't add failed commands to history
sponge
]);
}

View File

@@ -1,4 +1,9 @@
{ pkgs, ... }:
{
fish = {
enable = true;
};
git = {
enable = true;
userEmail = "petru@paler.net";
@@ -38,37 +43,4 @@
set -g status-right ""
'';
};
zsh = {
enable = true;
history = {
save = 1000000;
size = 1000000;
};
prezto = {
enable = true;
pmodules = [
"gnu-utility"
"environment"
"terminal"
"editor"
"history"
"directory"
"spectrum"
"utility"
"completion"
"syntax-highlighting"
"prompt"
];
gnuUtility.prefix = "g";
prompt.theme = "pure";
utility.safeOps = false;
syntaxHighlighting.highlighters = [
"main"
"brackets"
"pattern"
"root"
];
};
};
}