diff --git a/users/modules/config/nushell/config.nu b/users/modules/config/nushell/config.nu new file mode 100644 index 0000000..af138e7 --- /dev/null +++ b/users/modules/config/nushell/config.nu @@ -0,0 +1,28 @@ +$env.config = { + show_banner: false + + history: { + max_size: 10000000 + file_format: "sqlite" + # Write history on enter + sync_on_enter: true + # but each shell should have an effective isolated buffer + isolation: true + } + + completions: { + case_sensitive: false + quick: true + partial: true + algorithm: "prefix" + external: { + enable: true + max_results: 200 + completer: null + } + } + + cd: { + abbreviations: true + } +} diff --git a/users/modules/config/nushell/default.nix b/users/modules/config/nushell/default.nix new file mode 100644 index 0000000..4ae6edd --- /dev/null +++ b/users/modules/config/nushell/default.nix @@ -0,0 +1,15 @@ +{ + programs.nushell = { + enable = true; + configFile.source = ./config.nu; + envFile.source = ./env.nu; + }; + + home.persistence."/persist".directories = [ + ".config/nushell" + ]; + + # XXX: remove once removed. DEBOALOGR + programs.starship.enableNushellIntegration = false; + programs.atuin.enableNushellIntegration = false; +} diff --git a/users/modules/config/nushell/env.nu b/users/modules/config/nushell/env.nu new file mode 100644 index 0000000..e69de29 diff --git a/users/modules/config/shell/nushell.nix b/users/modules/config/shell/nushell.nix deleted file mode 100644 index a26e50e..0000000 --- a/users/modules/config/shell/nushell.nix +++ /dev/null @@ -1,5 +0,0 @@ -{ - programs.nushell.enable = true; - programs.starship.enableNushellIntegration = false; - programs.atuin.enableNushellIntegration = false; -} diff --git a/users/modules/default.nix b/users/modules/default.nix index 37ea52a..230a25b 100644 --- a/users/modules/default.nix +++ b/users/modules/default.nix @@ -6,7 +6,7 @@ ./config/htop.nix ./config/impermanence.nix ./config/neovim.nix - ./config/shell + ./config/nushell ./config/utils.nix ]; } diff --git a/users/myuser/graphical/default.nix b/users/myuser/graphical/default.nix index f814a1a..a9dd6f5 100644 --- a/users/myuser/graphical/default.nix +++ b/users/myuser/graphical/default.nix @@ -37,6 +37,8 @@ zathura ]; + # TODO thunderbird doesn't use passwords from password command + # TODO rotating wallpaper # TODO thunderbird date time format is wrong even though this is C.utf8 # TODO yubikey pinentry is curses but should be graphical # TODO accounts.concats accounts.calendar @@ -44,21 +46,18 @@ # TODO agenix rekey edit secret should create temp files with same extension # TODO mod+f1-4 for left monitor? # TODO autostart signal, firefox (both windows), etc. - # TODO agenix rekey caches in /tmp which is removed each reboot and could be improved + # TODO repo secrets caches in /tmp which is removed each reboot and could be improved # TODO entering devshell takes some time after reboot - # TODO emoji in firefox are wrong # TODO screenshot selection/all and copy clipboard # TODO screenshot selection/all and save # TODO screenshot selection and scan qr and copy clipboard # TODO screenshot selection and ocr and copy clipboard - # TODO sway config # TODO sway shortcuts - # TODO enable nodeadkeys # TODO kitty terminfo missing with ssh root@localhost # TODO nvim coloscheme missing on reboot.... what state is missing? # TODO VP9 hardware video decoding blocklisted # TODO gpg switch to sk - # TODO some font icons not showing neovim + # TODO some font icons not showing neovim because removed from nerdfonts, replace with bertter . shellAliases = { p = "cd ~/projects"; diff --git a/users/myuser/neovim/init.lua b/users/myuser/neovim/init.lua index abc039b..ac1d8ef 100644 --- a/users/myuser/neovim/init.lua +++ b/users/myuser/neovim/init.lua @@ -78,6 +78,8 @@ return packer.startup(function(use) use { "neovim/nvim-lspconfig", config = conf_module "lspconfig" } -- Neovim as an additional language server use { "jose-elias-alvarez/null-ls.nvim", config = conf_fn "null-ls" } + -- Nushell syntax via treesitter + use { "LhKipp/nvim-nu", run = ":TSInstall nu", config = function() require("nu").setup{} end } ---------------------------------------------------------------------------------------------------- -- Editing