mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-06 05:25:41 -05:00
fix systemd startup (#364)
This commit is contained in:
@@ -82,12 +82,21 @@ in {
|
|||||||
configs.dms = "${
|
configs.dms = "${
|
||||||
dmsPkgs.dankMaterialShell
|
dmsPkgs.dankMaterialShell
|
||||||
}/etc/xdg/quickshell/DankMaterialShell";
|
}/etc/xdg/quickshell/DankMaterialShell";
|
||||||
activeConfig = lib.mkIf cfg.enableSystemd "dms";
|
};
|
||||||
|
|
||||||
systemd = lib.mkIf cfg.enableSystemd {
|
systemd.user.services.dms = lib.mkIf cfg.enableSystemd {
|
||||||
enable = true;
|
Unit = {
|
||||||
target = "graphical-session.target";
|
Description = "DankMaterialShell";
|
||||||
|
PartOf = [ config.wayland.systemd.target ];
|
||||||
|
After = [ config.wayland.systemd.target ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Service = {
|
||||||
|
ExecStart = lib.getExe dmsPkgs.dmsCli + " run";
|
||||||
|
Restart = "on-failure";
|
||||||
|
};
|
||||||
|
|
||||||
|
Install.WantedBy = [ config.wayland.systemd.target ];
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.configFile = lib.mapAttrs' (name: plugin: {
|
xdg.configFile = lib.mapAttrs' (name: plugin: {
|
||||||
|
|||||||
Reference in New Issue
Block a user