arroyo/arroyo-home-manager.org

1.4 KiB

Arroyo Home Manager

Arroyo can construct a configuration for nix-community/home-manager from any number of org-roam files using the Arroyo System Cache and Org Babel. There is a colloquial "nixlib" directory, currently /rrix/arroyo/src/branch/main/~/arroyo-nix which all Nix files are relative to. By adding a keyword #+ARROYO_HOME_MODULE: hm/import-file.nix and then tangling to e.g. ~/nix/hm/import-file.nix you can generate a modular home-manager configuration like I do.

arroyo-home-manager-imports returns a string suitable for import'ing in home-manager's literate helpers.

(defun arroyo-home-manager-imports (&optional role)
  (arroyo-generate-imports "home-manager" role))
(provide 'arroyo-home-manager)

NEXT refactor arroyo-home-manager-imports and arroyo-nixos-imports to compose together more-well….