fix(flake): install app2unit when option enabled

This commit is contained in:
Matan Bendix Shenhav
2025-10-11 17:41:33 +02:00
parent 158d3a1e63
commit f36c8fe73a
+3
View File
@@ -198,8 +198,11 @@
restart = ''
${pkgs.systemd}/bin/systemctl --user try-restart noctalia-shell.service 2>/dev/null || true
'';
useApp2Unit = mergedSettings.appLauncher.useApp2Unit or false;
in
lib.mkIf cfg.enable {
home.packages = lib.optional useApp2Unit pkgs.app2unit;
xdg.configFile = {
"noctalia/settings.json" = {
onChange = restart;