fix: fix shellll

This commit is contained in:
Rasyidan Akbar F. 2025-10-27 16:59:38 +07:00
commit d80bbce9da
6 changed files with 57 additions and 149 deletions

View file

@ -23,11 +23,20 @@
};
};
environment.shells = [ pkgs.nushell ];
environment.shells = [ pkgs.nushell "/etc/profiles/per-user/${user}/bin/nu" ];
# Set XDG Base Directory environment variables globally
# This ensures nushell and other XDG-compliant tools use ~/.config
environment.variables = {
XDG_CONFIG_HOME = "$HOME/.config";
XDG_DATA_HOME = "$HOME/.local/share";
XDG_CACHE_HOME = "$HOME/.cache";
};
users.users.${user} = {
home = lib.mkDefault "/Users/${user}";
shell = pkgs.nushell;
# Use the Home Manager nushell which has proper config setup
shell = "/etc/profiles/per-user/${user}/bin/nu";
};
system = {