about summary refs log tree commit diff
path: root/machines
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2018-04-04 21:13:54 +0200
committerProfpatsch <mail@profpatsch.de>2018-05-01 21:28:02 +0200
commit94f989ec0e94beb9668581ddc08d67af6f667484 (patch)
tree0f28ce1bf8092cc688ab0efc9789322f4860435d /machines
parent34ad186b020a057a9cec63bb7134691d07318688 (diff)
machines/katara: rm twmn notify daemon, add dunst (user service)
Diffstat (limited to 'machines')
-rw-r--r--machines/profpatsch/katara.nix19
1 files changed, 16 insertions, 3 deletions
diff --git a/machines/profpatsch/katara.nix b/machines/profpatsch/katara.nix
index 4342cb71..4b1cf4e3 100644
--- a/machines/profpatsch/katara.nix
+++ b/machines/profpatsch/katara.nix
@@ -287,11 +287,8 @@ in {
             set-background &
             # TODO xbindkeys user service file
             ${lib.getBin xbindkeys}/bin/xbindkeys
-            nice -n19 dropbox-cli start &
-            nm-applet &
             # synchronize clipboards
             ${lib.getBin autocutsel}/bin/autocutsel -s PRIMARY &
-            ${lib.getBin twmn}/bin/twmnd &
           '';
       };
 
@@ -408,6 +405,22 @@ in {
       }
 
       ({
+        services.dunst = {
+          description = "dunst libnotify daemon";
+          serviceConfig = {
+            Type = "dbus";
+            BusName = "org.freedesktop.Notifications";
+            ExecStart =
+              let config = pkgs.writeText "dunst.conf" (lib.generators.toINI {} {});
+              in "${lib.getBin pkgs.dunst}/bin/dunst -config ${config}";
+            Restart = "on-failure";
+          };
+          partOf = [ "graphical-session.target" ];
+          wantedBy = [ "graphical-session.target" ];
+        };
+      })
+
+      ({
         services.pyrnotify-ssh-connection = {
           description = "ssh connection to make pyrnotify work";
           serviceConfig = {