Sublime Text CFG

Just curious, is anyone using Sublime Text (4) on here? How are you managing your config and extensions via nixos?

Just moving the config files into something like home manager and putting them into place?

Yes, I am using home-manager for configuring ST:

https://github.com/jtojnar/nixfiles/blob/0a6230927d227f59fd91c712ee10497386fbf77d/common/configs/sublime/default.nix

I am relying on the fact that all settings with the same name will be merged so I create Declarative package containing declarative settings with home-manager and keep the default config mutable to allow for things like changing zoom or quickly testing settings change before moving out to declarative config.

Currently, I do not manage most ST packages declaratively but in most cases, it should be as simple as cloning the package repo to the Packages directory. In the long term, I want to create a Nix package set automatically generated from packagecontrol.io definitions to avoid having to manage updates manually.

1 Like