From a7787198cee745f6a78fb8b5762d25066ff54dc5 Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sat, 7 Nov 2026 18:01:01 +0800 Subject: [PATCH] fix(shells): disable the nushell welcome banner without Home Manager Assisted-by: DeepSeek Harness (deepseek-flash) --- modules/nixos/nushell-login.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/nixos/nushell-login.nix b/modules/nixos/nushell-login.nix index e309600d..e1e3f362 100644 --- a/modules/nixos/nushell-login.nix +++ b/modules/nixos/nushell-login.nix @@ -2,4 +2,14 @@ { users.users.${myvars.username}.shell = pkgs.nushell; environment.shells = [ pkgs.nushell ]; + + # Hosts without Home Manager get no Nix-managed `config.nu`, so nushell + # generates one in `~/.config/nushell` with the welcome banner enabled; on a + # tmpfs `$HOME` that is a fresh banner after every boot. This vendor autoload + # is read after `config.nu`, so it turns the banner off without taking over + # the user's own config file. + programs.nushell = { + enable = true; + interactiveShellInit = "$env.config.show_banner = false"; + }; }