From 4de92c4507a46d5c8e7e7edc2503aee0c5ca4b63 Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Mon, 30 Mar 2026 12:48:50 -0400 Subject: [PATCH] [hydros-systemd-units] Added presets to enable services --- hydros-systemd-units/hydros-systemd-units.spec | 8 +++++++- .../systemd/system-preset/10-hydros-system-systemd.preset | 2 ++ .../systemd/user-preset/10-hydros-user-systemd.preset | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 hydros-systemd-units/systemd/system-preset/10-hydros-system-systemd.preset create mode 100644 hydros-systemd-units/systemd/user-preset/10-hydros-user-systemd.preset diff --git a/hydros-systemd-units/hydros-systemd-units.spec b/hydros-systemd-units/hydros-systemd-units.spec index 21d3f5a..27a02f7 100644 --- a/hydros-systemd-units/hydros-systemd-units.spec +++ b/hydros-systemd-units/hydros-systemd-units.spec @@ -1,5 +1,5 @@ Name: hydros-systemd-units -Version: 0.0.2 +Version: 0.0.3 Release: %autorelease Summary: The bundle of assets for HydrOS BuildArch: noarch @@ -14,10 +14,12 @@ Source0: source.tar.gz %autosetup -C %install +install -Dm0644 -t %{buildroot}%{_presetdir}/ %{_builddir}/%{name}-%{version}/system-preset/10-hydros-system-systemd.preset install -Dm0644 -t %{buildroot}%{_unitdir}/ %{_builddir}/%{name}-%{version}/system/bootc-fetch-updates.service install -Dm0644 -t %{buildroot}%{_unitdir}/ %{_builddir}/%{name}-%{version}/system/bootc-fetch-updates.timer install -Dm0644 -t %{buildroot}%{_unitdir}/ %{_builddir}/%{name}-%{version}/system/flatpak-system-update.service install -Dm0644 -t %{buildroot}%{_unitdir}/ %{_builddir}/%{name}-%{version}/system/flatpak-system-update.timer +install -Dm0644 -t %{buildroot}%{_userpresetdir}/ %{_builddir}/%{name}-%{version}/user-preset/10-hydros-user-systemd.preset install -Dm0644 -t %{buildroot}%{_userunitdir}/ %{_builddir}/%{name}-%{version}/user/flatpak-user-update.service install -Dm0644 -t %{buildroot}%{_userunitdir}/ %{_builddir}/%{name}-%{version}/user/flatpak-user-update.timer install -Dm0644 -t %{buildroot}%{_userunitdir}/ %{_builddir}/%{name}-%{version}/user/hyprlauncher.service @@ -41,10 +43,12 @@ install -Dm0644 -t %{buildroot}%{_userunitdir}/ %{_builddir}/%{name}-%{version}/ %systemd_user_preun hydros-ssh-agent.service %files +%{_presetdir}/10-hydros-system-systemd.preset %{_unitdir}/bootc-fetch-updates.service %{_unitdir}/bootc-fetch-updates.timer %{_unitdir}/flatpak-system-update.service %{_unitdir}/flatpak-system-update.timer +%{_userpresetdir}/10-hydros-user-systemd.preset %{_userunitdir}/flatpak-user-update.service %{_userunitdir}/flatpak-user-update.timer %{_userunitdir}/hyprlauncher.service @@ -53,6 +57,8 @@ install -Dm0644 -t %{buildroot}%{_userunitdir}/ %{_builddir}/%{name}-%{version}/ %changelog * Mon Mar 30 2026 Eriq Taing +- Added presets to enable services +* Mon Mar 30 2026 Eriq Taing - Renamed ssh-agent service to hydros-ssh-agent to avoid conflict * Mon Mar 30 2026 Eriq Taing - First version packaged diff --git a/hydros-systemd-units/systemd/system-preset/10-hydros-system-systemd.preset b/hydros-systemd-units/systemd/system-preset/10-hydros-system-systemd.preset new file mode 100644 index 0000000..6c78e59 --- /dev/null +++ b/hydros-systemd-units/systemd/system-preset/10-hydros-system-systemd.preset @@ -0,0 +1,2 @@ +enable flatpak-system-update.timer +enable bootc-fetch-updates.timer diff --git a/hydros-systemd-units/systemd/user-preset/10-hydros-user-systemd.preset b/hydros-systemd-units/systemd/user-preset/10-hydros-user-systemd.preset new file mode 100644 index 0000000..94938ec --- /dev/null +++ b/hydros-systemd-units/systemd/user-preset/10-hydros-user-systemd.preset @@ -0,0 +1,4 @@ +enable flatpak-user-update.timer +enable hyprlauncher.service +enable quickshell.service +enable hydros-ssh-agent.service