From dc52ee25ff121232051202a38d5d128ba10f6e35 Mon Sep 17 00:00:00 2001
From: ckie <git-525ff67@ckie.dev>
Date: Fri, 11 Feb 2022 09:51:53 +0200
Subject: [PATCH] README: add instruction on recycling home-manager generation
 from NixOS

---
 README.md | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/README.md b/README.md
index 3ecca29..ea7e915 100644
--- a/README.md
+++ b/README.md
@@ -11,6 +11,23 @@ nix community. If you want access read the security guide lines on
 add your username to `roles/builder/users.nix`. Don't keep any important data
 in your home! We will regularly delete `/home` without further notice.
 
+### Using your NixOS home-manager configuration on the hosts
+
+If you happen to have your NixOS & home-manager configurations intertwined but 
+you'd like your familiar environment on our infrastructure you can evaluate
+`pkgs.writeShellScript "hm-activate" config.systemd.services.home-manager-<yourusername>.serviceConfig.ExecStart`
+from your NixOS configuration, and send this derivation to be realized remotely:
+(in case you aren't a Nix trusted user)
+``` console
+# somehow get the .drv of the above expression into $path
+$ nix copy --to ssh://build01.nix-community.org --derivation $path
+$ ssh build01.nix-community.org
+$ nix-store -r $path
+$ $path
+```
+
+*(My [implementation](https://github.com/ckiee/nixfiles/blob/aac57f56e417e31f00fd495d8a30fb399ecbc19b/deploy/hm-only.nix#L10) of [this](https://github.com/ckiee/nixfiles/blob/aac57f56e417e31f00fd495d8a30fb399ecbc19b/bin/c#L92-L95) ~ckie)*
+
 ## Support
 
 If you hit any issues, ping us on Matrix in the