How to reuse my nixos configurations for zsh & vim etc. on other distributions which has nix installed?

Hi guys, I want to migrate my dotfiles (configurations for softwares) into nixos configuration (nixos modules).

But there is still some other situation where I can only access a linux OS (Ubuntu most of the time) instead of NixOS, so if I cannot reuse my nixos configuration for programs like vim, zsh etc. I have to maintain two style of configurations, one for NixOS and one for other distributions.

So, is there any way to reuse my nixos configurations for programs (services is not the main point here) in other linux distributions?

Have you looked into GitHub - nix-community/home-manager: Manage a user environment using Nix [maintainer=@rycee] ?

2 Likes