Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- systemd.user.services.dunst =
- let
- dunstConfig = pkgs.writeText "dunstrc" ''
- [global]
- # more config here
- '';
- in
- {
- enable = true;
- description = "Lightweight and customizable notification daemon";
- wantedBy = [ "default.target" ];
- path = [ pkgs.dunst ];
- serviceConfig = {
- Restart = "always";
- Environment = "DISPLAY=:0.0";
- #ExecStart = "${pkgs.dunst}/bin/dunst -config ${dunstConfig}";
- ExecStart = "${pkgs.dunst}/bin/dunst";
- RestartSec = 2;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement