NixOS/home/modules/hyprland/sway-notification-center.nix

22 lines
405 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
let
cfg = config.profile.hyprland;
in
{
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
swaynotificationcenter
libnotify
];
home.file.".config/swaync/config.json".text = builtins.toJSON {
2024-10-17 16:57:34 +07:00
positionX = "center";
positionY = "top";
};
wayland.windowManager.hyprland.settings.exec-once = [
"swaync"
];
};
}