Skip to content

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

License

Notifications You must be signed in to change notification settings

ReedClanton/html2nix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Packages

No packages published