1
0
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:
bokicoder
2025-10-10 01:23:33 +08:00
committed by GitHub
parent 9de5e3253e
commit 010bc4e8c3

View File

@@ -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: {