NixOS-Vista/nixosVista/homeManager/hyprland/customUser.nix

30 lines
914 B
Nix

{
config,
lib,
nixosVista,
...
}: let
cfg = nixosVista.hyprland;
in {
############################################################
# Inject into fragment system
############################################################
config = lib.mkIf nixosVista.enable {
nixosVista.hyprland.fragments.customTop = lib.mkIf (cfg.customTop != "") ''
############################################################
# Your Custom User / nixosVista.hyprland.customTop
############################################################
${cfg.customTop}
'';
nixosVista.hyprland.fragments.customBottom = lib.mkIf (cfg.customBottom != "") ''
############################################################
# Custom User Bottom Config / nixosVista.hyprland.customBottom
############################################################
${cfg.customBottom}
'';
};
}