about summary refs log tree commit diff
path: root/nixos/modules/services/desktops
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-09-14 11:03:02 +0530
committertomf <tom@tom-fitzhenry.me.uk>2023-11-23 13:50:14 +1100
commitda35c07d235521ab19aa5f6fd83edd23f1aad134 (patch)
tree1ce02a9de230befb2eabcb5b2b4a7fb51a4b3581 /nixos/modules/services/desktops
parentaa0b9d27801654dd3ff1e0cb50d34aefd651c799 (diff)
downloadnixlib-da35c07d235521ab19aa5f6fd83edd23f1aad134.tar
nixlib-da35c07d235521ab19aa5f6fd83edd23f1aad134.tar.gz
nixlib-da35c07d235521ab19aa5f6fd83edd23f1aad134.tar.bz2
nixlib-da35c07d235521ab19aa5f6fd83edd23f1aad134.tar.lz
nixlib-da35c07d235521ab19aa5f6fd83edd23f1aad134.tar.xz
nixlib-da35c07d235521ab19aa5f6fd83edd23f1aad134.tar.zst
nixlib-da35c07d235521ab19aa5f6fd83edd23f1aad134.zip
nixos/seatd: add readiness notification
Diffstat (limited to 'nixos/modules/services/desktops')
-rw-r--r--nixos/modules/services/desktops/seatd.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/nixos/modules/services/desktops/seatd.nix b/nixos/modules/services/desktops/seatd.nix
index 32fff587ab3c..51977dfd2153 100644
--- a/nixos/modules/services/desktops/seatd.nix
+++ b/nixos/modules/services/desktops/seatd.nix
@@ -28,7 +28,7 @@ in
   };
 
   config = lib.mkIf cfg.enable {
-    environment.systemPackages = with pkgs; [ seatd ];
+    environment.systemPackages = with pkgs; [ seatd sdnotify-wrapper ];
     users.groups.seat = lib.mkIf (cfg.group == "seat") {};
 
     systemd.services.seatd = {
@@ -39,8 +39,10 @@ in
       restartIfChanged = false;
 
       serviceConfig = {
-        Type = "simple";
-        ExecStart = "${pkgs.seatd.bin}/bin/seatd -u ${cfg.user} -g ${cfg.group} -l ${cfg.logLevel}";
+        Type = "notify";
+        NotifyAccess = "all";
+        SyslogIdentifier = "seatd";
+        ExecStart = "${pkgs.sdnotify-wrapper}/bin/sdnotify-wrapper ${pkgs.seatd.bin}/bin/seatd -n 1 -u ${cfg.user} -g ${cfg.group} -l ${cfg.logLevel}";
         RestartSec = 1;
         Restart = "always";
       };