-
Hi! I'm sharing my dot files between multiple machines and now I'm trying to figure out if it is possible to have configurations based on the machine Niri is running on.
I'm wondering what the best way to have a shared config for all machines at once. If it's at all possible. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hey, unfortunately there are no config includes and stuff yet. But for monitor config at least, you can use monitor model+make+serial to configure them all, i.e. |
Beta Was this translation helpful? Give feedback.
-
This is maybe unhelpful in that it doesn't really have anything to do with niri directly, but one way to do this is through something like I also use NixOS and home-manager to install niri, because they are tightly coupled with the Nix package manager. But it's not necessary to do so. A minimal config could just import If the only thing you need is per-device monitor config, then niri absolutely does have that build in as YaLTeR said. But if you'd like to customize other parts per host, you'll need something more sophisticated to manage your dotfiles. |
Beta Was this translation helpful? Give feedback.
-
I think |
Beta Was this translation helpful? Give feedback.
I think
chezmoi
could help you with this. Here's the relevant doc: https://www.chezmoi.io/user-guide/manage-machine-to-machine-differences/