Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html2nix

Converts bookmarks.html file as exported by a browser, only Firefox has been tested, into Nix syntax as accepted by Home Manager's programs.firefox.profiles.<name>.bookmarks.

Running On Nix

  • Clone this repo to your local Nix machine.
  • From the root of the repo, run nix-shell.
  • Run python3 src/Html2Nix.py:
    • Use -i/--input to define a input file.
    • Use -o/--output to define an output file.

Output Usage

In a Home Manager Nix file, many name there's home.nix, set Firefox bookmarks as seen bellow:

programs.firefox.profiles.<name>.bookmarks = <html2nixOutputHere>;

OR

programs.firefox.profiles.<name>.bookmarks = import <pathToOutputFile>;

About

Convers bookmarks.html Firefox export into Nix syntax as accepted by Home Manager's programs.firefox.profiles.<name>.bookmarks

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages