chore: move shell settings into default
This commit is contained in:
parent
ae43ca8324
commit
6685dd8e70
5 changed files with 24 additions and 22 deletions
|
@ -120,16 +120,20 @@ in
|
||||||
inherit (pkgs.fishPlugins.bang-bang) src;
|
inherit (pkgs.fishPlugins.bang-bang) src;
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
shellAliases = {
|
|
||||||
}
|
|
||||||
// lib.optionalAttrs (!host.darwin) {
|
|
||||||
reboot-windows = "sudo efibootmgr --bootnext 0000; sudo reboot -h now";
|
|
||||||
};
|
|
||||||
shellInit = ''
|
shellInit = ''
|
||||||
batman --export-env | source
|
if type -q batman
|
||||||
test -r '/Users/${user.username}/.opam/opam-init/init.fish' && source '/Users/${user.username}/.opam/opam-init/init.fish' > /dev/null 2> /dev/null; or true
|
batman --export-env | source
|
||||||
|
end
|
||||||
|
test -r "$HOME"'/.opam/opam-init/init.fish' && source "$HOME"'/.opam/opam-init/init.fish' > /dev/null 2> /dev/null; or true
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
zsh = {
|
||||||
|
enableCompletion = true;
|
||||||
|
autosuggestion.enable = true;
|
||||||
|
syntaxHighlighting.enable = true;
|
||||||
|
autocd = true;
|
||||||
|
history.size = 10000;
|
||||||
|
};
|
||||||
|
|
||||||
ghostty.settings.custom-shader = lib.mkIf (
|
ghostty.settings.custom-shader = lib.mkIf (
|
||||||
cfg.ghostty.shader != null
|
cfg.ghostty.shader != null
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{ ... }:
|
{ lib, ... }:
|
||||||
{
|
{
|
||||||
vim.autocomplete.blink-cmp = {
|
vim.autocomplete.blink-cmp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -14,6 +14,7 @@
|
||||||
setupOpts = {
|
setupOpts = {
|
||||||
keymap = {
|
keymap = {
|
||||||
preset = "super-tab";
|
preset = "super-tab";
|
||||||
|
"<C-.>" = [ "show" ];
|
||||||
};
|
};
|
||||||
completion = {
|
completion = {
|
||||||
ghost_text.enabled = false;
|
ghost_text.enabled = false;
|
||||||
|
|
|
@ -125,10 +125,12 @@
|
||||||
enable_cursor_hijack = true;
|
enable_cursor_hijack = true;
|
||||||
git_status_async = true;
|
git_status_async = true;
|
||||||
close_if_last_window = true;
|
close_if_last_window = true;
|
||||||
|
window.width = 30;
|
||||||
filesystem.filtered_items = {
|
filesystem.filtered_items = {
|
||||||
# dotfiles are often used for project configuration
|
# dotfiles are often used for project configuration
|
||||||
hide_dotfiles = false;
|
hide_dotfiles = false;
|
||||||
never_show = [
|
never_show = [
|
||||||
|
".git"
|
||||||
".DS_Store" # macOS
|
".DS_Store" # macOS
|
||||||
"thumbs.db" # Windows
|
"thumbs.db" # Windows
|
||||||
];
|
];
|
||||||
|
|
|
@ -52,7 +52,6 @@ in
|
||||||
theme = "light:catppuccin-latte,dark:catppuccin-macchiato";
|
theme = "light:catppuccin-latte,dark:catppuccin-macchiato";
|
||||||
font-family = "AT Name Mono";
|
font-family = "AT Name Mono";
|
||||||
adjust-cursor-thickness = 1;
|
adjust-cursor-thickness = 1;
|
||||||
minimum-contrast = 1.1;
|
|
||||||
background-opacity = 0.9;
|
background-opacity = 0.9;
|
||||||
background-blur = true;
|
background-blur = true;
|
||||||
};
|
};
|
||||||
|
@ -61,12 +60,6 @@ in
|
||||||
# zsh is the shell i use
|
# zsh is the shell i use
|
||||||
zsh = {
|
zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
|
||||||
autosuggestion.enable = true;
|
|
||||||
syntaxHighlighting.enable = true;
|
|
||||||
|
|
||||||
history.size = 10000;
|
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
switch = "nh darwin switch ~/config";
|
switch = "nh darwin switch ~/config";
|
||||||
gg = "lazygit";
|
gg = "lazygit";
|
||||||
|
|
|
@ -1,11 +1,5 @@
|
||||||
|
{ lib, host, ... }@args:
|
||||||
{
|
{
|
||||||
pkgs,
|
|
||||||
lib,
|
|
||||||
options,
|
|
||||||
...
|
|
||||||
}@args:
|
|
||||||
{
|
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
# sort-lines:start
|
# sort-lines:start
|
||||||
atuin.enable = true;
|
atuin.enable = true;
|
||||||
|
@ -17,6 +11,14 @@
|
||||||
lsd.enable = true;
|
lsd.enable = true;
|
||||||
android-sdk.enable = true;
|
android-sdk.enable = true;
|
||||||
# sort-lines:end
|
# sort-lines:end
|
||||||
|
|
||||||
|
fish = {
|
||||||
|
shellAliases =
|
||||||
|
{ }
|
||||||
|
// lib.optionalAttrs (!host.darwin) {
|
||||||
|
reboot-windows = "sudo efibootmgr --bootnext 0000; sudo reboot -h now";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = import ./packages.nix args;
|
home.packages = import ./packages.nix args;
|
||||||
|
|
Loading…
Reference in a new issue