[feat] Add fnm and enable xdg

This commit is contained in:
Uttarayan Mondal
2024-02-16 14:57:49 +05:30
parent d92aef5090
commit 6d0526ab07
2 changed files with 22 additions and 5 deletions

View File

@@ -22,6 +22,10 @@ in
../linux/hyprland.nix ../linux/hyprland.nix
]; ];
xdg = {
enable = true;
};
programs = { programs = {
fish = { fish = {
enable = true; enable = true;
@@ -34,6 +38,9 @@ in
ls = "exa"; ls = "exa";
t = "${start-tmux}"; t = "${start-tmux}";
}; };
shellInit = ''
fnm env | source
'';
interactiveShellInit = '' interactiveShellInit = ''
set fish_greeting set fish_greeting
${pkgs.macchina.outPath}/bin/macchina ${pkgs.macchina.outPath}/bin/macchina
@@ -138,9 +145,9 @@ in
# manage. # manage.
username = device.user; username = device.user;
homeDirectory = homeDirectory =
if device.system == "x86-64-linux" if !isNull (builtins.match ".*-darwin" device.system)
then lib.mkForce "/home/${device.user}" then lib.mkForce "/Users/${device.user}"
else lib.mkForce "/Users/${device.user}"; else lib.mkForce "/home/${device.user}";
stateVersion = "23.11"; stateVersion = "23.11";
@@ -148,9 +155,17 @@ in
macchina macchina
ripgrep ripgrep
fd fd
fnm
alejandra alejandra
neovim-nightly dust
eza
cachix cachix
rustup
cmake
# neovim-nightly
(nerdfonts.override {fonts = ["Hasklig"];})
mpv
# # Adds the 'hello' command to your environment. It prints a friendly # # Adds the 'hello' command to your environment. It prints a friendly
# # "Hello, world!" when run. # # "Hello, world!" when run.
# pkgs.hello # pkgs.hello
@@ -182,7 +197,8 @@ in
sessionVariables = { sessionVariables = {
EDITOR = "nvim"; EDITOR = "nvim";
SHELL = "${pkgs.fish.outPath}/bin/fish"; SHELL = "${pkgs.nushellFull}/bin/nu";
CARGO_TARGET_DIR = "${config.xdg.cacheHome}/cargo/target";
}; };
sessionPath = [ sessionPath = [
"${config.home.homeDirectory}/.local/bin" "${config.home.homeDirectory}/.local/bin"

View File

@@ -40,6 +40,7 @@ in
plugin = tmuxPlugins.catppuccin; plugin = tmuxPlugins.catppuccin;
extraConfig = '' extraConfig = ''
set -g @catppuccin_flavour 'mocha' set -g @catppuccin_flavour 'mocha'
set -g @catppuccin_window_default_text ""
''; '';
} }
{ {