Advertisement
Guest User

Untitled

a guest
Dec 25th, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1.  
  2. systemd.user.services.dunst =
  3. let
  4. dunstConfig = pkgs.writeText "dunstrc" ''
  5. [global]
  6. # more config here
  7. '';
  8. in
  9. {
  10. enable = true;
  11. description = "Lightweight and customizable notification daemon";
  12. wantedBy = [ "default.target" ];
  13. path = [ pkgs.dunst ];
  14. serviceConfig = {
  15. Restart = "always";
  16. Environment = "DISPLAY=:0.0";
  17. #ExecStart = "${pkgs.dunst}/bin/dunst -config ${dunstConfig}";
  18. ExecStart = "${pkgs.dunst}/bin/dunst";
  19. RestartSec = 2;
  20. };
  21. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement