Skip to content

Migrate your nix-env package to your global config

License

Notifications You must be signed in to change notification settings

Melkor333/nix-merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Nix-Merge

Easily move your `nix-env` packages into your global configuration!

About The Project

Nix-merge helps you move all your quickly installed packages from nix-env into your global configuration. Just select the packages you want to migrate and remove and it does the rest.

Showcase of migrating arandr

Getting Started

The script is currently not (yet) packaged for NixOS. The only way is to run it as a flake:

nix run

$ nix run github:Melkor333/nix-merge#. PATH-TO-YOUR-NIXOS-CONFIG
# If you don't have the experimental features enabled:
nix --extra-experimental-features "nix-command flakes" run github:Melkor333/nix-merge#. PATH-TO-YOUR-NIXOS-CONFIG

Install

TODO

Usage

Usage: nix-merge [OPTION]... FILE
Migrate all your nix-env packages to a configuration file

  -a --all            Just select *all* files. otherwise you will be asked
  -d --descriptions   Ask for an optional description for each package to be added as comment

  FILE                Should be a nix configuration file e.g.:
                      /etc/nixos/configuration.nix
                      $HOME/.config/home-manager/home.nix
                      This file should contain the following line.
                      new packages will be inserted after this line.
                      Note that if the line is indented, indentation will
                      be used during insertion

                      $BEGIN


CACHE FILES:
$HOME/.local/share/nix-merge/packages.cache
                    Stores a list of all existing packages it can find


$HOME/.local/share/nix-merge/attrsets.cache
                    Stores the current status of packages-names and what
                    packages are yet to be handled in case of early cancel

License

Distributed under the MIT License. See LICENSE for more information.

About

Migrate your nix-env package to your global config

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages