diff options
Diffstat (limited to 'users/seth/programs/nu.nix')
| -rw-r--r-- | users/seth/programs/nu.nix | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/users/seth/programs/nu.nix b/users/seth/programs/nu.nix deleted file mode 100644 index 89a6803..0000000 --- a/users/seth/programs/nu.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ - config, - lib, - pkgs, - ... -}: -let - cfg = config.seth.programs.nushell; - theme = "catppuccin-${config.catppuccin.flavor}"; -in -{ - options.seth.programs.nushell = { - enable = lib.mkEnableOption "Nushell configuration"; - }; - - config = lib.mkIf cfg.enable { - programs = { - nushell = { - enable = true; - - configFile.text = '' - def "nixgc" [] { - sudo nix-collect-garbage -d; nix-collect-garbage -d - } - ''; - - envFile.text = '' - use ${pkgs.nu_scripts}/share/nu_scripts/themes/nu-themes/${theme}.nu - $env.config.color_config = (${theme}) - ''; - - inherit (config.home) shellAliases; - }; - - bash.initExtra = lib.mkAfter '' - if [[ $(ps --no-header --pid=$PPID --format=comm) != "nu" && -z ''${BASH_EXECUTION_STRING} ]]; then - exec ${lib.getExe config.programs.nushell.package} - fi - ''; - - # builtin `ls` is good here! - eza.enable = lib.mkForce false; - }; - }; -} |
