nix-configs/modules/shell/nu.nix

43 lines
1.2 KiB
Nix
Raw Normal View History

{config, ...}: {
home-manager.users.jade = {pkgs, ...}: {
2023-12-08 08:38:39 +01:00
# Needed for nu_scripts background_task
services.pueue = {
enable = true;
settings = {
shared = {
use_unix_socket = true;
};
};
};
2023-12-08 11:49:22 +01:00
home.packages = [
pkgs.pueue
];
2024-08-02 21:29:25 +02:00
home.file."shell-startup" = {
source = ../../other/scripts/desktop/shell-startup.nu;
target = ".config/nushell/shell-startup.nu";
};
programs.nushell = {
enable = true;
package = config.users.defaultUserShell;
configFile.source = ../../other/config.nu;
envFile.source = ../../other/env.nu;
2024-06-29 14:37:41 +02:00
extraConfig = ''
2024-08-01 07:44:41 +02:00
plugin add ${pkgs.nushellPlugins.query}/bin/nu_plugin_query;
plugin add ${pkgs.nushellPlugins.polars}/bin/nu_plugin_polars;
plugin add ${pkgs.nushellPlugins.formats}/bin/nu_plugin_formats;
plugin use query;
plugin use polars;
plugin use formats;
2024-08-01 10:27:38 +02:00
nu ${../../other/scripts/desktop/shell-startup.nu};
2024-06-29 14:37:41 +02:00
'';
2024-08-02 21:29:25 +02:00
extraEnv = ''
'';
};
2024-08-02 21:29:25 +02:00
# programs.starship.enableNushellIntegration = true;
programs.carapace.enableNushellIntegration = true;
programs.direnv.enableNushellIntegration = true;
};
}