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

29 lines
698 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";
fit-to-screen = false;
control-center-height = 800;
};
home.file.".config/swaync/style.css".source = pkgs.fetchurl {
url = "https://github.com/catppuccin/swaync/releases/download/v0.2.3/mocha.css";
hash = "sha256-Hie/vDt15nGCy4XWERGy1tUIecROw17GOoasT97kIfc=";
};
wayland.windowManager.hyprland.settings.exec-once = [
"swaync"
];
};
}