I have just installed Nixos, along with hyprland, wofi, and waybar. Everything works, and looks pretty good. Just one thing: I’d like to make a few changes to waybar, but I can’t find the configuration file! I don’t have /usr/share or /etc/xdg folders, and those are normally the first places I look. No “waybar” files in /etc either or even ~/.config.
One must exist somewhere…
So, how do I edit the waybar configuration file? I don’t want to over-write the default, just change it a bit. I can usually figure out what’s going on by looking at the existing file.
Thanks…
the waybar config is in ~/.config/waybar
. You can just write your changes in that file. If you want to do it with nix you should use something like this in your home-manager:
home.file = {
".config/hypr/hyprlock.conf".source = ./hypr/hyprlock.conf;
".config/hypr/hyprshade.toml".source = ./hypr/hyprshade.toml;
".config/waybar".source = ./waybar;
};
Thanks for that. I hadn’t installed home-manager, so it seems that I have a bit of learning to do!
You don’t need home-manager for that. You just need it if you want your waybarconfig declared by nix.
Sorry about my late reply. I needed the machine that I was using to investigate Nix rather urgently, but have just found an older laptop to try again. When I get it working I’ll migrate to my day-to-day machine.
So, how do I go about configuring waybar without having a ~/.config file if I also don’t need home-manager? I’d like to keep my setup as simple as possible. I won’t use home-manager if I don’t need it…
Thank you.
So just to understand you correctly. You want to configure your waybar without home-manager. Therefor you just configure your waybar the normal way by editing your .config/waybar/waybar.config
.