21 lines
631 B
Nix
21 lines
631 B
Nix
{ lib, config, pkgs, ... }:
|
|
|
|
let
|
|
username = config.defaultUser or "henrov";
|
|
assetPath = ../../../assets/system/conf/waybar;
|
|
in
|
|
{
|
|
# Install Waybar globally
|
|
environment.systemPackages = [ pkgs.waybar ];
|
|
|
|
# Contribute to the existing Home Manager users map safely
|
|
home-manager.users = lib.recursiveUpdate config.home-manager.users {
|
|
${username} = {
|
|
home.file = lib.recursiveUpdate (config.home-manager.users.${username}.home.file or {}) {
|
|
".config/waybar/config" = { source = "${assetPath}/config"; };
|
|
".config/waybar/style.css" = { source = "${assetPath}/style.css"; };
|
|
};
|
|
};
|
|
};
|
|
}
|