From 34a7a042a36b63eb6b900932b1e420e4b6014a57 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 5 May 2024 11:35:18 -0400 Subject: simplify some things (#353) * flake: drop flake-parts * flake: add back flake-parts * flake: use flake module again for configurations --- users/seth/module/shell/nu.nix | 43 ------------------------------------------ 1 file changed, 43 deletions(-) delete mode 100644 users/seth/module/shell/nu.nix (limited to 'users/seth/module/shell/nu.nix') diff --git a/users/seth/module/shell/nu.nix b/users/seth/module/shell/nu.nix deleted file mode 100644 index b5b1529..0000000 --- a/users/seth/module/shell/nu.nix +++ /dev/null @@ -1,43 +0,0 @@ -{ - config, - lib, - inputs, - ... -}: let - cfg = config.seth.shell.nushell; - theme = "catppuccin-${config.catppuccin.flavour}"; -in { - options.seth.shell.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 ${inputs.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; - }; - }; -} -- cgit v1.2.3