Move fish config to shared
This commit is contained in:
8
flake.lock
generated
8
flake.lock
generated
@@ -158,11 +158,19 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs-unstable": {
|
"nixpkgs-unstable": {
|
||||||
"locked": {
|
"locked": {
|
||||||
|
<<<<<<< HEAD
|
||||||
"lastModified": 1720957393,
|
"lastModified": 1720957393,
|
||||||
"narHash": "sha256-oedh2RwpjEa+TNxhg5Je9Ch6d3W1NKi7DbRO1ziHemA=",
|
"narHash": "sha256-oedh2RwpjEa+TNxhg5Je9Ch6d3W1NKi7DbRO1ziHemA=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "693bc46d169f5af9c992095736e82c3488bf7dbb",
|
"rev": "693bc46d169f5af9c992095736e82c3488bf7dbb",
|
||||||
|
=======
|
||||||
|
"lastModified": 1720768451,
|
||||||
|
"narHash": "sha256-EYekUHJE2gxeo2pM/zM9Wlqw1Uw2XTJXOSAO79ksc4Y=",
|
||||||
|
"owner": "nixos",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "7e7c39ea35c5cdd002cd4588b03a3fb9ece6fad9",
|
||||||
|
>>>>>>> 53d356d (Move fish config to shared)
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -20,8 +20,8 @@
|
|||||||
|
|
||||||
home.file.".config/nvim".source = ../shared/dotfiles/nvim;
|
home.file.".config/nvim".source = ../shared/dotfiles/nvim;
|
||||||
home.file.".tmux.conf".source = ../shared/dotfiles/tmux;
|
home.file.".tmux.conf".source = ../shared/dotfiles/tmux;
|
||||||
|
home.file.".config/fish/config.fish".source = ../shared/dotfiles/fish/gui-config.fish;
|
||||||
home.file.".config/waybar".source = ./dotfiles/waybar;
|
home.file.".config/waybar".source = ./dotfiles/waybar;
|
||||||
home.file.".config/fish/config.fish".source = ./dotfiles/fish/config.fish;
|
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
|||||||
@@ -13,30 +13,18 @@ if status is-interactive
|
|||||||
function fish_mode_prompt
|
function fish_mode_prompt
|
||||||
end
|
end
|
||||||
|
|
||||||
### Local environment variables
|
|
||||||
set -x DENO_INSTALL "/home/eesim/.deno"
|
|
||||||
|
|
||||||
direnv hook fish | source
|
direnv hook fish | source
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if status is-login
|
if status is-login
|
||||||
|
|
||||||
# SSH settings
|
|
||||||
eval (ssh-agent -c)
|
|
||||||
ssh-add /home/eesim/.ssh/id_ed25519
|
|
||||||
|
|
||||||
# Set environment variables in /etc/profile.d/
|
|
||||||
# exec bash -c "test -e /etc/profile && source /etc/profile"
|
|
||||||
|
|
||||||
# Disable GTK portal
|
# Disable GTK portal
|
||||||
set -x GTK_USE_PORTAL "0"
|
set -x GTK_USE_PORTAL "0"
|
||||||
|
|
||||||
|
|
||||||
# Java fix
|
# Java fix
|
||||||
set -x _JAVA_AWT_WM_NONREPARENTING "1"
|
set -x _JAVA_AWT_WM_NONREPARENTING "1"
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if test (tty) = "/dev/tty1"
|
if test (tty) = "/dev/tty1"
|
||||||
|
|||||||
@@ -20,8 +20,9 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
home.file.".config/nvim".source = ../shared/dotfiles/nvim;
|
home.file.".config/nvim".source = ../shared/dotfiles/nvim;
|
||||||
|
home.file.".config/fish/config.fish".source = ../shared/dotfiles/fish/gui-config.fish;
|
||||||
|
|
||||||
home.file.".config/waybar".source = ./dotfiles/waybar;
|
home.file.".config/waybar".source = ./dotfiles/waybar;
|
||||||
home.file.".config/fish/config.fish".source = ./dotfiles/fish/config.fish;
|
|
||||||
home.file.".config/alacritty/alacritty.toml".source = ./dotfiles/alacritty/alacritty.toml;
|
home.file.".config/alacritty/alacritty.toml".source = ./dotfiles/alacritty/alacritty.toml;
|
||||||
home.file.".ssh/config".source = ./dotfiles/ssh/config;
|
home.file.".ssh/config".source = ./dotfiles/ssh/config;
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
home.file.".config/nvim".source = ../shared/dotfiles/nvim;
|
home.file.".config/nvim".source = ../shared/dotfiles/nvim;
|
||||||
home.file.".tmux.conf".source = ../shared/dotfiles/tmux;
|
home.file.".tmux.conf".source = ../shared/dotfiles/tmux;
|
||||||
|
home.file.".config/fish/config.fish".source = ../shared/dotfiles/fish/cli-config.fish;
|
||||||
|
|
||||||
programs.home-manager.enable = true;
|
programs.home-manager.enable = true;
|
||||||
|
|
||||||
|
|||||||
28
hosts/shared/dotfiles/fish/cli-config.fish
Normal file
28
hosts/shared/dotfiles/fish/cli-config.fish
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
if status is-interactive
|
||||||
|
fish_add_path "/home/eesim/.cargo/bin/"
|
||||||
|
|
||||||
|
set fish_greeting
|
||||||
|
|
||||||
|
set fish_cursor_default block
|
||||||
|
set fish_cursor_insert line
|
||||||
|
set fish_cursor_replace_one underscore
|
||||||
|
set fish_cursor_replace underscore
|
||||||
|
set fish_cursor_external line
|
||||||
|
set fish_cursor_visual block
|
||||||
|
|
||||||
|
function fish_mode_prompt
|
||||||
|
end
|
||||||
|
|
||||||
|
direnv hook fish | source
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
if status is-login
|
||||||
|
|
||||||
|
# Disable GTK portal
|
||||||
|
set -x GTK_USE_PORTAL "0"
|
||||||
|
|
||||||
|
# Java fix
|
||||||
|
set -x _JAVA_AWT_WM_NONREPARENTING "1"
|
||||||
|
|
||||||
|
end
|
||||||
33
hosts/shared/dotfiles/fish/gui-config.fish
Normal file
33
hosts/shared/dotfiles/fish/gui-config.fish
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
if status is-interactive
|
||||||
|
fish_add_path "/home/eesim/.cargo/bin/"
|
||||||
|
|
||||||
|
set fish_greeting
|
||||||
|
|
||||||
|
set fish_cursor_default block
|
||||||
|
set fish_cursor_insert line
|
||||||
|
set fish_cursor_replace_one underscore
|
||||||
|
set fish_cursor_replace underscore
|
||||||
|
set fish_cursor_external line
|
||||||
|
set fish_cursor_visual block
|
||||||
|
|
||||||
|
function fish_mode_prompt
|
||||||
|
end
|
||||||
|
|
||||||
|
direnv hook fish | source
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
if status is-login
|
||||||
|
|
||||||
|
# Disable GTK portal
|
||||||
|
set -x GTK_USE_PORTAL "0"
|
||||||
|
|
||||||
|
# Java fix
|
||||||
|
set -x _JAVA_AWT_WM_NONREPARENTING "1"
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
if test (tty) = "/dev/tty1"
|
||||||
|
sway
|
||||||
|
end
|
||||||
|
|
||||||
Reference in New Issue
Block a user