Commit 50e42b241caa

Vincent Demeester <vincent@sbr.pm>
2025-06-18 15:09:24
systems/kyushu: disable battery-monitor service…
… and start using sway instead. Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 88aa4c1
Changed files (2)
home
common
desktop
systems
kyushu
home/common/desktop/sway/default.nix
@@ -223,6 +223,9 @@ in
           command = "systemctl --user restart kanshi";
           always = true;
         }
+        {
+          command = "${pkgs.battery-monitor}/bin/battery-monitor";
+        }
         {
           command = "${pkgs.pa-notify}/bin/pa-notify -u0";
           always = true;
systems/kyushu/home.nix
@@ -1,27 +1,27 @@
-{ pkgs, ... }:
+{ ... }:
 {
   imports = [
     ../../home/common/dev/containers.nix
   ];
 
-  systemd.user.services.battery-monitor = {
-    Unit = {
-      Description = "battery monitory service";
-      After = "graphical-session.target";
-      PartOf = "graphical-session.target";
-
-      # Avoid killing the Emacs session, which may be full of
-      # unsaved buffers.
-      X-RestartIfChanged = false;
-    };
-    Service = {
-      ExecStart = ''
-        ${pkgs.battery-monitor}
-      '';
-      Restart = "on-failure";
-    };
-    Install = {
-      WantedBy = [ "graphical-session.target" ];
-    };
-  };
+  # systemd.user.services.battery-monitor = {
+  #   Unit = {
+  #     Description = "battery monitory service";
+  #     After = "graphical-session.target";
+  #     PartOf = "graphical-session.target";
+  #
+  #     # Avoid killing the Emacs session, which may be full of
+  #     # unsaved buffers.
+  #     X-RestartIfChanged = false;
+  #   };
+  #   Service = {
+  #     ExecStart = ''
+  #       ${pkgs.battery-monitor}/bin/battery-monitor
+  #     '';
+  #     Restart = "on-failure";
+  #   };
+  #   Install = {
+  #     WantedBy = [ "graphical-session.target" ];
+  #   };
+  # };
 }