[feat] Update nix config
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
.PHONY: run build
|
.PHONY: run build
|
||||||
switch:
|
switch:
|
||||||
|
nix run home-manager/master switch --flake ~/.local/share/dotfiles/config/nix
|
||||||
|
init:
|
||||||
nix run home-manager/master -- init --switch ~/.local/share/dotfiles/config/nix
|
nix run home-manager/master -- init --switch ~/.local/share/dotfiles/config/nix
|
||||||
|
|
||||||
build:
|
|
||||||
nix run home-manager/master -- init ~/.local/share/dotfiles/config/nix
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
# https://mipmip.github.io/home-manager-option-search/
|
||||||
{
|
{
|
||||||
# Home Manager needs a bit of information about you and the paths it should
|
# Home Manager needs a bit of information about you and the paths it should
|
||||||
# manage.
|
# manage.
|
||||||
@@ -26,11 +26,18 @@
|
|||||||
ls = "exa";
|
ls = "exa";
|
||||||
};
|
};
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
# Add the following line to your ~/.config/fish/config.fish to enable
|
|
||||||
# Home Manager's Fish integration.
|
|
||||||
# source ${config.home.homeDirectory}/.nix-profile/share/hm-session-vars/hm-session-vars.fish
|
|
||||||
set fish_greeting
|
set fish_greeting
|
||||||
# macchina
|
${pkgs.macchina.outPath}/bin/macchina
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
nushell = {
|
||||||
|
enable = true;
|
||||||
|
shellAliases = {
|
||||||
|
"cd" = "z";
|
||||||
|
};
|
||||||
|
package = pkgs.nushellFull;
|
||||||
|
configFile.text = ''
|
||||||
|
show_banner: false,
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
zoxide = {
|
zoxide = {
|
||||||
@@ -54,18 +61,11 @@
|
|||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
enableNushellIntegration = true;
|
enableNushellIntegration = true;
|
||||||
};
|
};
|
||||||
nushell = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.nushellFull;
|
|
||||||
shellAliases = {
|
|
||||||
"cd" = "z";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
fzf = {
|
fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.fzf;
|
package = pkgs.fzf;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
enableShellIntegration = true;
|
tmux.enableShellIntegration = true;
|
||||||
};
|
};
|
||||||
keychain = {
|
keychain = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -73,7 +73,11 @@
|
|||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
enableNushellIntegration = true;
|
enableNushellIntegration = true;
|
||||||
};
|
};
|
||||||
|
yazi = {
|
||||||
|
enable = true;
|
||||||
|
enableFishIntegration = true;
|
||||||
|
enableNushellIntegration = true;
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -112,6 +116,7 @@
|
|||||||
|
|
||||||
home.sessionVariables = {
|
home.sessionVariables = {
|
||||||
EDITOR = "nvim";
|
EDITOR = "nvim";
|
||||||
|
SHELL = "${pkgs.fish.outPath}/bin/fish";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Let Home Manager install and manage itself.
|
# Let Home Manager install and manage itself.
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ in
|
|||||||
bind j select-pane -D
|
bind j select-pane -D
|
||||||
bind k select-pane -U
|
bind k select-pane -U
|
||||||
bind l select-pane -R
|
bind l select-pane -R
|
||||||
bind h set status
|
|
||||||
set -g allow-passthrough on
|
set -g allow-passthrough on
|
||||||
set -ga update-environment TERM
|
set -ga update-environment TERM
|
||||||
set -ga update-environment TERM_PROGRAM
|
set -ga update-environment TERM_PROGRAM
|
||||||
|
|||||||
Reference in New Issue
Block a user