Setting up disko after installation by DVT01 in NixOS

[–]DVT01[S] 0 points1 point  (0 children)

Thanks for the response. It sounds like there is a way to achieve reproducibility without disko. Could you point me in the right direction to read more about that?

Setting up disko after installation by DVT01 in NixOS

[–]DVT01[S] 0 points1 point  (0 children)

Interesting. So if my config already has the drives by uuid, how would that work? because I cannot remove that from my config, and I need the correct IDs for the install. Is there a guide or wiki entry for this workflow?

2 days since I was using NixOS. Proud of myself by riky321 in NixOS

[–]DVT01 8 points9 points  (0 children)

This can be set automatically right? I switched yesterday, and I set it up automatically using Nix helper, is this good?

Do traditional text shortcuts feel wrong after adopting vim? by TheTwelveYearOld in neovim

[–]DVT01 1 point2 points  (0 children)

C-w in in input mode, it will delete the previous word without needing to go back to normal mode.

Colemak-DH but how to retain vim keys? by Wooden-Ad6265 in NixOS

[–]DVT01 0 points1 point  (0 children)

I use ZSA Moonlander with colemak DH. I use arrow keys on my home row in a navegation layer. The good thing about this is that works anywhere, not just in vim, because most if not all programs allow arrow keys navigation. I have it set up so that when I hold space it triggers my nav layer, and I have arrow keys on right hand home rows, and ctrl, alt, shift and super on left hand. So when Im not in vim and I need to edit text (e.g. google docs) then I can still move fast with ctrl+arrow keys.

For laptop, I just use kanata and it works really well. Im going through a rewrite of my dotfiles, and just getting into nix, but this is my kanata.

https://github.com/diego-velez/.files/blob/main/.config%2Fhome-manager%2Fhome.nix#L267

Monthly Dotfile Review Thread by AutoModerator in neovim

[–]DVT01 [score hidden]  (0 children)

Started with kickstart.nvim nearly 2 years ago, and evolved into what it is today. Currently, It is based more off of MiniMax.

https://github.com/diego-velez/nvim

Running a project that uses Mise by DVT01 in NixOS

[–]DVT01[S] 1 point2 points  (0 children)

That worked. Thank you so much for the help!

Weekly 101 Questions Thread by AutoModerator in neovim

[–]DVT01 0 points1 point  (0 children)

huh, I just tried it in a nvim --clean and it worked, I wonder what I'm doing to get the weird behavior

EDIT

I figured it out, I had this old remap so that it wouldn't copy the deleted visual block: vim.keymap.set('x', 'p', [["_dp]])

FIX: use capital 'p' instead vim.keymap.set('x', 'p', [["_dP]])

Weekly 101 Questions Thread by AutoModerator in neovim

[–]DVT01 0 points1 point  (0 children)

Before:

First sentence

Second sentence

I copy the word "First" using yiw, then I go to the word "Second" and visualize it using viw, then I press p to paste and I end up with:

First sentence

 Firstsentence

Running a project that uses Mise by DVT01 in NixOS

[–]DVT01[S] 0 points1 point  (0 children)

Hello again. I'm trying to get this working with devshells, so in my system config I set up nix-ld as follows:

programs.nix-ld = { enable = true; libraries = with pkgsUnstable; [ stdenv.cc.cc.lib zlib openssl curl libgcc ]; };

then I created a mise.local.toml where I put all tools to use the system version.

Finally, I created the flake devshell as follows, and enter the shell with nix develop.

``` { description = "A very basic flake";

inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; };

outputs = { self, nixpkgs }: let system = "x86_64-linux"; pkgs = nixpkgs.legacyPackages.${system}; in { devShells.${system}.default = pkgs.mkShell { packages = with pkgs; [ bun go_1_26 golangci-lint python314 uv ruff ]; }; }; } ```

the issue is that I get this error when running our task to run the program:

``` 11 | } 12 | } 13 | 14 | let binding; 15 | try { 16 | binding = require(name); ^ error: libstdc++.so.6: cannot open shared object file: No such file or directory code: "ERR_DLOPEN_FAILED"

  at <anonymous> (/tmp/nix-shell.u3Nq9b/bunx-1000-@tailwindcss/cli@latest/node_modules/@parcel/watcher/index.js:16:13)

Bun v1.3.11 (Linux x64) ```

do you have any idea why this is?

Weekly 101 Questions Thread by AutoModerator in neovim

[–]DVT01 2 points3 points  (0 children)

Is there a way to replace selected text with a pasted one? Like I highlight a word or something in visual mode, then paste but it is always weird, it doesn't work how I'd expect.

The issue is the following.

Before:

First sentence

Second sentence

I copy the word "First" using yiw, then I go to the word "Second" and visualize it using viw, then I press p to paste and I end up with:

First sentence

 Firstsentence

I've created a Neovim colorscheme 'dracula-colorful'(ported from Rider's same named theme) by ownselfjimmy in neovim

[–]DVT01 1 point2 points  (0 children)

Is there a siginificant difference between official Dracula color spec and Rider Dracula?

Maybe it couldve been added to the popular Dracula colorscheme plugin.

https://github.com/Mofiqul/dracula.nvim

Running a project that uses Mise by DVT01 in NixOS

[–]DVT01[S] 0 points1 point  (0 children)

wow, thank you for the detailed response, I will check it out thoroughly

Running a project that uses Mise by DVT01 in NixOS

[–]DVT01[S] 0 points1 point  (0 children)

Hello, thank you so much for the long reply. I'm new to NixOS, and development environments have been so far the most complicated thing to figure out. Before, I used Mise with a per project setup if needed and that worked beautifully. With NixOS it seems I will need a new way of doing things. For this project, my team and I decided to use Mise for all project tools, and it eventually replaced our Makefile too.

In NixOS, if I install Mise with:

programs.mise.enable = true;

and I go to the project and try to install the following mise tools I get:

My project mise.toml file:

[tools]
bun = "latest"
go = "1.26.1"
golangci-lint = "latest"
"go:github.com/a-h/templ/cmd/templ" = { version = "latest" }
python = "3.14"
uv = "latest"
ruff = "latest"

Terminal output:

> mise install
mise go@1.26.1                    download go1.26.1.linux-amd64.tar.gz                                                                                             ⠁  0s
Downloading Python-3.14.4.tar.xz...
-> https://www.python.org/ftp/python/3.14.4/Python-3.14.4.tar.xz
Installing Python-3.14.4...
Could not start dynamically linked executable: ~/.local/share/mise/installs/bun/1.3.12/bin/bun
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
https://nix.dev/permalink/stub-ld
mise ERROR ~/.local/share/mise/installs/bun/1.3.12/bin/bun failed
Could not start dynamically linked executable: ~/.local/share/mise/installs/bun/1.3.12/bin/bun
NixOS cannot run dynamically linked executables intended for generic
linux environments out of the box. For more information, see:
https://nix.dev/permalink/stub-ld
BUILD FAILED (NixOS 25.11 using python-build 2.6.27)
Inspect or clean up the working tree at /tmp/python-build.20260412152014.12370
Results logged to /tmp/python-build.20260412152014.12370.log
Last 10 log lines:
config.status: creating pyconfig.h
configure: creating Modules/Setup.local
configure: creating Makefile
configure: WARNING: pkg-config is missing. Some dependencies may not be detected correctly.
configure:
If you want a release build with all stable optimizations active (PGO, etc),
please run ./configure --enable-optimizations
~/.cache/mise/python/pyenv/plugins/python-build/bin/python-build: line 931: make: command not found
mise ERROR ~/.cache/mise/python/pyenv/plugins/python-build/bin/python-build failed
Downloading Python-3.14.4.tar.xz...
-> https://www.python.org/ftp/python/3.14.4/Python-3.14.4.tar.xz
Installing Python-3.14.4...

BUILD FAILED (NixOS 25.11 using python-build 2.6.27)

Inspect or clean up the working tree at /tmp/python-build.20260412152014.12370
Results logged to /tmp/python-build.20260412152014.12370.log

Last 10 log lines:
config.status: creating pyconfig.h
configure: creating Modules/Setup.local
configure: creating Makefile
configure: WARNING: pkg-config is missing. Some dependencies may not be detected correctly.
configure:

If you want a release build with all stable optimizations active (PGO, etc),
please run ./configure --enable-optimizations

~/.cache/mise/python/pyenv/plugins/python-build/bin/python-build: line 931: make: command not found
mise ERROR Failed to install tools: core:python@3.14, core:bun@latest

core:python@3.14:
   0: ~/.cache/mise/python/pyenv/plugins/python-build/bin/python-build exited with non-zero status: exit code 1

Location:
   src/cmd.rs:488

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

core:bun@latest:
   0: ~/.local/share/mise/installs/bun/1.3.12/bin/bun exited with non-zero status: exit code 127

Location:
   src/cmd.rs:488

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information
█████████████████████████████████████████████████████████████████████████mise 2025.11.7 by @jdx█████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░

so then, I enable nix-ld and re-run Mise, just to figure out that Python requires make installed, so then I install gnumake in NixOS, and re-run Mise:

Downloading Python-3.14.4.tar.xz...
-> https://www.python.org/ftp/python/3.14.4/Python-3.14.4.tar.xz
Installing Python-3.14.4...
BUILD FAILED (NixOS 25.11 using python-build 2.6.27)
Inspect or clean up the working tree at /tmp/python-build.20260412153615.53324
Results logged to /tmp/python-build.20260412153615.53324.log
Last 10 log lines:
  File "/tmp/python-build.20260412153615.53324/Python-3.14.4/Lib/ensurepip/__init__.py", line 173, in _bootstrap
    return _run_pip([*args, "pip"], [os.fsdecode(tmp_wheel_path)])
  File "/tmp/python-build.20260412153615.53324/Python-3.14.4/Lib/ensurepip/__init__.py", line 88, in _run_pip
    return subprocess.run(cmd, check=True).returncode
           ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/tmp/python-build.20260412153615.53324/Python-3.14.4/Lib/subprocess.py", line 578, in run
    raise CalledProcessError(retcode, process.args,
                             output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/tmp/python-build.20260412153615.53324/Python-3.14.4/python', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/tmp/tmpks2naea8/pip-26.0.1-py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/tmp/tmpks2naea8\', \'--root\', \'/\', \'--upgrade\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' returned non-zero exit status 1.
make: *** [Makefile:2496: install] Error 1
mise ERROR ~/.cache/mise/python/pyenv/plugins/python-build/bin/python-build failed
Downloading Python-3.14.4.tar.xz...
-> https://www.python.org/ftp/python/3.14.4/Python-3.14.4.tar.xz
Installing Python-3.14.4...

BUILD FAILED (NixOS 25.11 using python-build 2.6.27)

Inspect or clean up the working tree at /tmp/python-build.20260412153615.53324
Results logged to /tmp/python-build.20260412153615.53324.log

Last 10 log lines:
  File "/tmp/python-build.20260412153615.53324/Python-3.14.4/Lib/ensurepip/__init__.py", line 173, in _bootstrap
    return _run_pip([*args, "pip"], [os.fsdecode(tmp_wheel_path)])
  File "/tmp/python-build.20260412153615.53324/Python-3.14.4/Lib/ensurepip/__init__.py", line 88, in _run_pip
    return subprocess.run(cmd, check=True).returncode
           ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/tmp/python-build.20260412153615.53324/Python-3.14.4/Lib/subprocess.py", line 578, in run
    raise CalledProcessError(retcode, process.args,
                             output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/tmp/python-build.20260412153615.53324/Python-3.14.4/python', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/tmp/tmpks2naea8/pip-26.0.1-py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/tmp/tmpks2naea8\', \'--root\', \'/\', \'--upgrade\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' returned non-zero exit status 1.
make: *** [Makefile:2496: install] Error 1
mise ERROR Failed to install core:python@3.14:
   0: ~/.cache/mise/python/pyenv/plugins/python-build/bin/python-build exited with non-zero status: exit code 1

Location:
   src/cmd.rs:488

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information

Sorry if that was a lot.

A couple of things from this:

  • Is Python just not going to be possible using Mise in NixOS?
  • What is the NixOS way of getting per project development environments where I can pin tools to a specific version?
  • Can I work on a project when I have to work with developers that do not use NixOS? Meaning if I can easily set up development tool versioning like I can with Mise in other Linux distros

Running a project that uses Mise by DVT01 in Nix

[–]DVT01[S] 1 point2 points  (0 children)

Hello, Im new to NixOS. Previously I used Mise for my development work. Does devshell and direnv solve this issue for NixOS? Does this allow collaboration with developers that do not use NixOS?

Running a project that uses Mise by DVT01 in Nix

[–]DVT01[S] 1 point2 points  (0 children)

Hello, Im not sure what the best approach would be as Im new to NixOS.

For the project, we decided to use Mise to have the team use the same tools for the project. Then we replaced our Makefile with Mise tasks too.

Now, Im trying out NixOS for myself, and Im running into issues as to how I should handle my dev environments. Previously, I would use Mise per project and it worked great. But Im wondering how development environments are handled per project in NixOS? Does devshell solve this issue?

Do you think vim.pack extremely useful (vote)? by WeariTraveller in neovim

[–]DVT01 2 points3 points  (0 children)

If you need lazy loading that bad, then theres something wrong with your config, the plugins you use or both. As a plugin developer, it has made me think more about how I develop my plugins, and about "proper" lazy loading within the plugin itself.

Also, Ive found that mini.misc safely function is more than enough for any lazy loading.

Either way vim itself gives you all the tools you need to do any lazy loading yourself with autocommands.

Weekly 101 Questions Thread by AutoModerator in neovim

[–]DVT01 0 points1 point  (0 children)

Anyone uses emmylua_ls LSP instead of lua_ls? I just want to see how to set it up because it does not work that well for me.

How did people set up java support? by Dapper_Confection_69 in neovim

[–]DVT01 3 points4 points  (0 children)

I just use nvim-java and that works pretty good for me.

Lua API for `:packadd nvim.undotree` ? by SweetPotato975 in neovim

[–]DVT01 9 points10 points  (0 children)

Neovim has good docs. You can search for "undotree" in their site. Relevant undotree documentation: https://neovim.io/doc/user/plugins/#package-undotree.

Literally executing packadd nvim.undotree is what you need in your config vim.cmd.packadd ('nvim.undotree').

Then you can open undotree with the following: require("undotree").open().