about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2025-08-24 03:58:15 +0200
committerSilas Schöffel <sils@sils.li>2025-08-24 03:58:15 +0200
commitd1d7d5b581b87e455ef7e30b5451e85c10b90ced (patch)
treef5e589d17a2b076e99ca6fbfec03bdb37abb1669
parentwaybar: change font to sansSerif (diff)
downloadnix-config-d1d7d5b581b87e455ef7e30b5451e85c10b90ced.zip
swaync: init
This replaces mako
-rw-r--r--hm/sils/default.nix3
-rw-r--r--modules/hm/sils/default.nix1
-rw-r--r--modules/hm/sils/swaync/default.nix32
3 files changed, 35 insertions, 1 deletions
diff --git a/hm/sils/default.nix b/hm/sils/default.nix
index 5c5d8bc..f4c99cd 100644
--- a/hm/sils/default.nix
+++ b/hm/sils/default.nix
@@ -3,7 +3,7 @@
     ../../modules/hm
     ../gpg
     ../gtk
-    ../mako
+    #../mako
     ../nixvim
     ../packages
     ../rofi
@@ -42,6 +42,7 @@
     mail.enable = true;
     nextcloud.enable = true;
     sway.enable = true;
+    swaync.enable = true;
     theming.enable = true;
     yt-dlp.enable = true;
     zathura.enable = true;
diff --git a/modules/hm/sils/default.nix b/modules/hm/sils/default.nix
index 03cfaef..5b50da3 100644
--- a/modules/hm/sils/default.nix
+++ b/modules/hm/sils/default.nix
@@ -17,6 +17,7 @@
     ./mail.nix
     ./nextcloud.nix
     ./sway.nix
+    ./swaync
     ./theming.nix
     ./yt-dlp.nix
     ./zathura.nix
diff --git a/modules/hm/sils/swaync/default.nix b/modules/hm/sils/swaync/default.nix
new file mode 100644
index 0000000..328888b
--- /dev/null
+++ b/modules/hm/sils/swaync/default.nix
@@ -0,0 +1,32 @@
+{
+  config,
+  lib,
+  pkgs,
+  ...
+}: let
+  cfg = config.sils.swaync;
+in {
+  options.sils.swaync.enable = lib.mkEnableOption "swaync";
+  config = lib.mkIf cfg.enable {
+    services.swaync = {
+      enable = true;
+      settings = {
+        positionX = "right";
+        positionY = "top";
+        layer = "overlay";
+        control-center-layer = "top";
+        layer-shell = true;
+        cssPriority = "application";
+        control-center-margin-top = 0;
+        control-center-margin-bottom = 0;
+        control-center-margin-right = 0;
+        control-center-margin-left = 0;
+        notification-2fa-action = true;
+        notification-inline-replies = false;
+        notification-icon-size = 64;
+        notification-body-image-height = 100;
+        notification-body-image-width = 200;
+      };
+    };
+  };
+}