aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-26 20:07:27 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-27 13:05:30 -0800
commit0fa65e2210f015838af244872aa4472cc6c899ee (patch)
tree2db4fea37c2a6e770af78e93e4139761e981a022
parentdevel: install LSP for nix (diff)
downloadinfra-0fa65e2210f015838af244872aa4472cc6c899ee.tar.gz
mako: run with systemd
-rw-r--r--users/fcuny/desktop/wm/notification.nix21
1 files changed, 16 insertions, 5 deletions
diff --git a/users/fcuny/desktop/wm/notification.nix b/users/fcuny/desktop/wm/notification.nix
index 39d3fa8..c0b0415 100644
--- a/users/fcuny/desktop/wm/notification.nix
+++ b/users/fcuny/desktop/wm/notification.nix
@@ -5,11 +5,22 @@
pkgs.libnotify # to send notifications
];
- programs = {
- mako = {
- enable = true;
- markup = true;
- actions = true;
+ systemd.user.services.mako = {
+ Service = {
+ ExecStart = "${pkgs.mako}/bin/mako";
};
+ Install = {
+ WantedBy = [ "sway-session.target" ];
+ };
+ };
+
+ programs.mako = {
+ enable = true;
+ layer = "overlay";
+ defaultTimeout = 300;
+ maxVisible = 10;
+ maxIconSize = 24;
+ markup = true;
+ actions = true;
};
}