You are not logged in.

#1 2026-11-22 19:47:43

itsamephauxy
Member
Registered: 2026-09-30
Posts: 3
Website

Migrating arch config on a new machine - dotfiles

Hi there, I've been using archlinux on my old laptop for a while. I wish to also install it on my other laptop. I've read a bit of Migrate installation to new hardware and I've currently configured my dotfiles with a remote github repo. I have a very simple question: What should and shouldn't go in dotfiles? Should I just dump everything from ~/.config and other dotfiles I have on root? When I setup my new system do I need to maintain the config hierarchy as my current system or do I staged configs explicitely and copy them manually on the new system?

Edit: Question about submodules, when I try to add config for nvim to dotfiles I'm prompted that contents of child github repo(nvim-dap) won't persist on being cloned, so should I add them as a submodule or is it fine without it assuming lazyvim would autoinstall it?

Last edited by itsamephauxy (2026-11-22 19:55:48)

Offline

#2 2026-11-22 22:40:53

dimich
Member
From: Kharkiv, Ukraine
Registered: 2009-11-03
Posts: 854

Re: Migrating arch config on a new machine - dotfiles

itsamephauxy wrote:

I have a very simple question: What should and shouldn't go in dotfiles?

The question is simple but the answer is not. For example, if config contains any machine-specific path, it won't "work" as expected on other machine where that path is absent. So it depends™ on what each application store in its config and how it handles errors while processing config.

Offline

#3 Yesterday 13:25:59

itsamephauxy
Member
Registered: 2026-09-30
Posts: 3
Website

Re: Migrating arch config on a new machine - dotfiles

dimich wrote:
itsamephauxy wrote:

I have a very simple question: What should and shouldn't go in dotfiles?

The question is simple but the answer is not. For example, if config contains any machine-specific path, it won't "work" as expected on other machine where that path is absent. So it depends™ on what each application store in its config and how it handles errors while processing config.

I believe absolute path reference errors would be unavoidable, I think its better I upload all of my configs and migrate and see how it goes.

Offline

#4 Today 14:13:44

INNOCENTx0
Member
Registered: Today
Posts: 1

Re: Migrating arch config on a new machine - dotfiles

I'd like to reply to this post as lately i did the same thing.
You did well in creating a github repo for this.
"What should and shouldn't go in dotfiles?":
I believe the right question is just : what should go in .dotfiles.
For instance, let's say you use hyprland + hyprlock + waybar, in a new machine, i would keep all the files automatically generated by the system, then simply move the config files that i need and that i had modified,
An example, if the only things i touched are the hyprland.lua file (old is hyrland.conf), i'm gonna simply overwrite it with it, same for hyprlock and the waybar folder.

However, it can appen of course that you have different hardware, just keep it in mind when configurating stuff, my actual repo has variables referring to monitors i have at home, which of course i don't have in my laptop, reason why i have to simply fix it when transferring those dotfiles. maybe you can simply comment an alternative config ( maybe the standard one) so that it is already setupped once you transfer those files to another system.

Moreover, i would suggest to make a bash script that automatically configure the system for you, it can save a lot of time, i made a script that do the following thing: Initialize ssh and install git, generate an ssh key for my user, copy that in my github profile,clone my repo, move all the configs files and install all the packages i usually use, (even there) , you must pay attention, as in one computer you may have nvidia and by so, you need nvidia driver, in another computer you may need the intel one.

Online

Board footer

Powered by FluxBB