Switch to fish.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
programs.zsh.enable = true;
|
programs.fish.enable = true;
|
||||||
users.users.ppetru = {
|
users.users.ppetru = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
"wheel"
|
"wheel"
|
||||||
];
|
];
|
||||||
|
|
||||||
shell = pkgs.zsh;
|
shell = pkgs.fish;
|
||||||
|
|
||||||
hashedPassword = "$y$j9T$RStwCKefSqHTIiRo6u6Q50$Pp2dNUeJeUMH0HJdDoM/vXMQa2jqyTTPvvIzACHZhVB";
|
hashedPassword = "$y$j9T$RStwCKefSqHTIiRo6u6Q50$Pp2dNUeJeUMH0HJdDoM/vXMQa2jqyTTPvvIzACHZhVB";
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
let
|
|
||||||
packages = import ./packages.nix { inherit pkgs; };
|
|
||||||
in
|
|
||||||
{
|
{
|
||||||
home = {
|
home = {
|
||||||
inherit packages;
|
packages = (import ./packages.nix { inherit pkgs; }).packages;
|
||||||
stateVersion = "24.05"; # TODO: unify this with the references in flake.nix:inputs
|
stateVersion = "24.05"; # TODO: unify this with the references in flake.nix:inputs
|
||||||
|
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
@@ -23,10 +20,10 @@ in
|
|||||||
".ssh"
|
".ssh"
|
||||||
"projects"
|
"projects"
|
||||||
];
|
];
|
||||||
files = [ ];
|
files = [ ".local/share/fish/fish_history" ];
|
||||||
allowOther = true;
|
allowOther = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs = import ./programs.nix;
|
programs = import ./programs.nix { inherit pkgs; };
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,13 +1,17 @@
|
|||||||
{ pkgs }:
|
{ pkgs }:
|
||||||
|
{
|
||||||
let
|
packages =
|
||||||
nixTools = with pkgs; [
|
with pkgs;
|
||||||
git
|
[
|
||||||
home-manager
|
git
|
||||||
mosh
|
home-manager
|
||||||
tmux
|
mosh
|
||||||
vim
|
tmux
|
||||||
zsh
|
vim
|
||||||
];
|
zsh
|
||||||
in
|
]
|
||||||
nixTools
|
++ (with pkgs.fishPlugins; [
|
||||||
|
# don't add failed commands to history
|
||||||
|
sponge
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,4 +1,9 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
fish = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
git = {
|
git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userEmail = "petru@paler.net";
|
userEmail = "petru@paler.net";
|
||||||
@@ -38,37 +43,4 @@
|
|||||||
set -g status-right ""
|
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"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user