A migration assistant for Omarchy. Pick what to bring from another machine — apps, shell plugins, themes, desktop and app settings, network drives, logins, and your folders — tick the things you want, and leave the rest.
It is built for keeping several machines alike in both directions: set up a laptop from your desktop, then later bring something you installed on the laptop back.
The usual way to move a setup is to copy ~/.config across, which also copies
things that describe the old hardware: its screens, its mouse instead of the
laptop's touchpad, its drives. Immigrant sorts everything into:
| Kind | Meaning | Default |
|---|---|---|
| portable | safe to bring | ticked if missing or newer on the other machine |
| check first | probably wanted, may hold hardware details (touchpad/keyboard input.lua, audio, Electron app data, the whole bar layout) |
not ticked |
| this machine only | screens, GPU tuning, local disks | listed, never carried |
| logins | SSH keys, GitHub CLI, keyring, network-drive passwords, VPNs | carried only encrypted, never ticked for you |
Drives: network shares (SMB/NFS/sshfs, from /etc/fstab or systemd .mount
units) are offered and set up on the other machine with its own user and
paths. Disks physically attached to a machine are never offered.
System tweaks: files you've added to /etc's drop-in folders (udev rules,
driver options, systemd and NetworkManager settings, pacman hooks and the
like), a few settings files people edit, and scripts in /usr/local/bin are
offered under System tweaks, never ticked for you. Settings Omarchy's
installer changes on every machine (users, firewall, boot) are left alone.
Apps you uninstalled are offered too: bringing "Remove X" over uninstalls it
there, but only if that machine installed it itself rather than as something
else's dependency. All of this needs your password, and Undo puts it back.
Background services come with what they run, even outside ~/.local/bin: a
program in ~/.cargo/bin, a script's project folder (its databases stay
behind), the folder it runs in, and the system packages a Python script
imports. Packages you choose are marked as wanted there, so removing some
other app later can't take them along as leftovers. Packages built by hand
(not in the repositories or the AUR) are listed under this machine, since
there's nothing to install them from.
NetworkManager VPNs travel with the logins: their settings (which live where only root can read them), certificates and saved password, encrypted. They're set up switched off; the VPN plugin they need is offered alongside. The pointer you use comes with its cursor theme and is switched over straight away.
App settings are recognised with the help of
Mackup's list of where apps keep them
(rules/mackup-apps.json, GPL-3.0 like Mackup;
rebuild it with tools/import-mackup). It names folders after their app,
finds settings outside ~/.config (~/.vim, say), and when an app's folder is
too big to carry, offers just its settings files.
Rules live in rules/default.json. Add your own in
~/.config/immigrant/rules.json (same shape; your paths are checked first),
for example to mark a folder as machine-only or to never offer a package.
- On the machine you are copying from: open Immigrant → Share this machine → Describe this machine. Tick Include logins and set a passphrase if you want them carried.
- Hand it over, one of two ways. Snapshots only ever travel between your
own machines; there is deliberately no cloud or git option.
- Nearby — Show a code there; on the other machine, Bring over → Get a machine with its address and code. Or send instead of request. A request fetches only the list of what's there; each item's files are downloaded as you bring it over, so a small disk only holds what you chose. This is the only way files and folders travel.
- A file — save a
.tar.gz(on a USB drive, say) and open it on the other machine.
- On the machine you are copying to: pick the machine, tick what you want, Bring over. Installing apps and setting up network drives needs your password, so that part opens in a terminal.
Every apply can be undone from History: files are put back exactly as they were and anything added is removed. Apps it installed can be removed too (Undo, and remove its apps…), and before installing anything Immigrant takes a snapper restore point, which Omarchy lists in the boot menu.
Before bringing anything over, the eye button on each item shows exactly what would change: a line-by-line diff for files (home folder paths already rewritten), the version change for plugins and themes, the layout change for the bar. Save these choices… keeps the selection as a named preset; when the other machine is showing a code it's stored there too, so the next machine that asks it sees the preset. The crossed-out eye hides an item for good on this machine (it moves to Never offered here).
Share → Keep in step turns on a daily check (a systemd user timer). When another machine has brought things over from this one, Immigrant remembers what it was shown; the check rescans this machine and, if there's something new or changed since, says so in a notification. Click it to show a code. Nothing runs in the background besides that check, and nothing goes on the network until you show a code.
Documents, Pictures, Downloads and the rest are listed with their sizes but
never stored in a snapshot; they are copied straight from the other machine
while it shows its code. Nothing on the receiving machine is overwritten: an
unchanged file is skipped, and a different file with the same name is saved
beside yours as name (from host).ext. Drives mounted inside a folder are
skipped.
Power cuts, flat batteries, dropped Wi-Fi and crashes are expected, not exceptional:
- Every change is recorded (and flushed to disk) before it is made, with a copy of what was there. Files are written under a temporary name and swapped in whole, so nothing is ever left half-written under its real name.
- An apply that was cut off shows as interrupted in History. Continue does only what's left; Undo puts back everything it had done so far, including folders it created.
- Folder copies and downloads resume: whatever arrived whole is kept, and a file that was mid-transfer is fetched again.
- The password step (apps and drives) ticks off each item as it finishes; running it again carries on with the rest. If pacman was killed and left its lock file behind, Immigrant offers to clear it once nothing is using it.
- Only one apply, password step or undo runs at a time on a machine. The lock disappears by itself if the process dies.
- Before starting, Immigrant checks there's room for what you chose.
- Undo refuses to undo an older change if a newer one touched the same files, since that would throw the newer change away. Undo newest first.
Pause background sync first. Before the first apply, Immigrant asks you to pause anything that syncs in the background (Obsidian Sync, Syncthing, Dropbox, Nextcloud, cloud drives…) on both machines until it's done. A synced folder, such as an Obsidian vault, that changes on both machines at once can clash or be duplicated. Immigrant doesn't try to detect sync tools itself.
It also warns when the two machines run different Omarchy versions or CPU
architectures (copied programs won't run), when their clocks disagree (so
"newer" may be wrong), and when an app whose settings you're replacing is
running (it may write its old settings back when it quits). Device identities
(SSH authorized_keys, Syncthing, KDE Connect and similar) never travel.
python3 -I tests/test_crash.py kills Immigrant at awkward moments in
throwaway home folders and checks all of the above.
omarchy plugin add https://github.com/Doghouse-Mike/immigrant.git --enable --yesOpen it from the app launcher (Super+Space → "Immigrant"); the plugin adds its
own launcher entry. Or bind omarchy-shell shell toggle doghouse-mike.immigrant
to a key. Payload {"tab":"share"} or {"tab":"history"} opens a specific tab.
Everything the panel does is also a command: bin/immigrant --help.
Needs Python 3 (stdlib only), git, gpg and, for nearby transfers, openssl and avahi — all present on a stock Omarchy install.
- Logins are encrypted with your passphrase (gpg, AES-256) before they go anywhere, whichever way the snapshot travels.
- Nearby transfers are encrypted (TLS, with a certificate made fresh each time a code is shown). The code never crosses the network: both machines run a PAKE exchange with it (SPAKE2, as in Magic Wormhole), which proves each one knows the code and ties that proof to the certificate. Someone watching the network sees nothing useful, a machine in the middle is caught, and a wrong code can only be tried live. The listener stops after five wrong codes or 10 minutes without use (never mid-transfer).
- Omarchy's firewall blocks incoming connections. Allow Immigrant through the
firewall adds
ufwrules for TCP 47318 and mDNS, limited to your local subnet, on the machine that shows the code. - Shell plugins are code. Bringing one over clones it from the same git remote at the same commit; a plugin with local edits is copied as it is.
Early. Tested on Omarchy 4.0.4 to 4.0.6, moving between one desktop and two laptops. If you try it, please open an issue for anything it got wrong: what it carried that it shouldn't have, what it missed, or anything that broke.
Not handled: browser profiles (use your browser's own sync) and Flatpak app data.
MIT
If you find this useful, and can spare the cash:
I'll blow it on some combination of bike parts, nerd things, cameras, and music gear. Or food. Food is good.

