[hydros-systemd-units] Introduced package
Some checks failed
Build hydros-systemd-units / Build and push image (push) Failing after 1m33s
Some checks failed
Build hydros-systemd-units / Build and push image (push) Failing after 1m33s
This commit is contained in:
33
.gitea/workflows/build-hydros-systemd-units.yml
Normal file
33
.gitea/workflows/build-hydros-systemd-units.yml
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: Build hydros-systemd-units
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths:
|
||||||
|
- .gitea/workflows/build-hydros-systemd-units.yml
|
||||||
|
- "hydros-systemd-units/**"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build_push:
|
||||||
|
name: Build and push image
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Setup environment
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install -y podman iptables
|
||||||
|
|
||||||
|
# These stage versions are pinned by https://github.com/renovatebot/renovate
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v6 # v5
|
||||||
|
|
||||||
|
- name: Build RPM and Upload
|
||||||
|
uses: https://git.hydrosaber.com/hydros/build-rpm@main
|
||||||
|
with:
|
||||||
|
spec-file-path: ./hydros-systemd-units/hydros-systemd-units.spec
|
||||||
|
repository-user: eriq12
|
||||||
|
repository-user-token: ${{ secrets.RPM_PACKAGE_TOKEN }}
|
||||||
|
extra-source-directory: ./hydros-systemd-units/systemd
|
||||||
55
hydros-systemd-units/hydros-systemd-units.spec
Normal file
55
hydros-systemd-units/hydros-systemd-units.spec
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
Name: hydros-systemd-units
|
||||||
|
Version: 0.0.1
|
||||||
|
Release: %autorelease
|
||||||
|
Summary: The bundle of assets for HydrOS
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
License: GPL
|
||||||
|
Source0: source.tar.gz
|
||||||
|
|
||||||
|
%description
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -C
|
||||||
|
|
||||||
|
%install
|
||||||
|
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-updates.service
|
||||||
|
install -Dm0644 -t %{buildroot}%{_unitdir}/ %{_builddir}/%{name}-%{version}/system/flatpak-system-update.timer
|
||||||
|
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/hyprlaunhcer.service
|
||||||
|
install -Dm0644 -t %{buildroot}%{_userunitdir}/ %{_builddir}/%{name}-%{version}/user/quickshell.service
|
||||||
|
install -Dm0644 -t %{buildroot}%{_userunitdir}/ %{_builddir}/%{name}-%{version}/user/ssh-agent.service
|
||||||
|
|
||||||
|
%post
|
||||||
|
%systemd_post bootc-fetch-updates.timer
|
||||||
|
%systemd_post flatpak-system-updates.timer
|
||||||
|
%systemd_user_post flatpak-user-updates.timer
|
||||||
|
%systemd_user_post hyprlauncher.timer
|
||||||
|
%systemd_user_post quickshell.service
|
||||||
|
%systemd_user_post ssh-agent.service
|
||||||
|
|
||||||
|
%preun
|
||||||
|
%systemd_preun bootc-fetch-updates.timer
|
||||||
|
%systemd_preun flatpak-system-updates.timer
|
||||||
|
%systemd_user_preun flatpak-user-updates.timer
|
||||||
|
%systemd_user_preun hyprlauncher.timer
|
||||||
|
%systemd_user_preun quickshell.service
|
||||||
|
%systemd_user_preun ssh-agent.service
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_unitdir}/bootc-fetch-updates.service
|
||||||
|
%{_unitdir}/bootc-fetch-updates.timer
|
||||||
|
%{_unitdir}/flatpak-system-update.service
|
||||||
|
%{_unitdir}/flatpak-system-update.timer
|
||||||
|
%{_userunitdir}/flatpak-user-update.service
|
||||||
|
%{_userunitdir}/flatpak-user-update.timer
|
||||||
|
%{_userunitdir}/hyprlauncher.service
|
||||||
|
%{_userunitdir}/quickshell.service
|
||||||
|
%{_userunitdir}/ssh-agent.service
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Mar 30 2026 Eriq Taing <eriq12@protonmail.com>
|
||||||
|
- First version packaged
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Download bootc updates
|
||||||
|
Documentation=man:bootc(8)
|
||||||
|
ConditionPathExists=/run/ostree-booted
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/bootc update --quiet
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Download bootc updates
|
||||||
|
Documentation=man:bootc(8)
|
||||||
|
ConditionPathExists=/run/ostree-booted
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnBootSec=15min
|
||||||
|
OnUnitInactiveSec=8h
|
||||||
|
RandomizedDelaySec=2h
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Update flatpaks
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=flatpak update --noninteractive
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Update flatpak
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnBootSec=15min
|
||||||
|
OnCalendar=daily
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
@@ -0,0 +1,5 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Update flatpaks
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=flatpak update --noninteractive
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Update flatpak
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnBootSec=15min
|
||||||
|
OnCalendar=daily
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
18
hydros-systemd-units/systemd/user/hyprlauncher.service
Normal file
18
hydros-systemd-units/systemd/user/hyprlauncher.service
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=A launcher for the hypr ecosystem
|
||||||
|
# order startup after WM
|
||||||
|
After=graphical-session.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=exec
|
||||||
|
# Repurpose XDG Autostart filtering
|
||||||
|
ExecCondition=/lib/systemd/systemd-xdg-autostart-condition "wlroots:sway:Wayfire:labwc:Hyprland" ""
|
||||||
|
ExecStart=/usr/bin/hyprlauncher -d
|
||||||
|
Restart=on-failure
|
||||||
|
Slice=app-graphical.slice
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=graphical-session.target
|
||||||
|
# Alternatively can be wanted by specific WMs' targets
|
||||||
|
# Should also be duplicated in 'After=' to avoid ordering loop
|
||||||
|
#WantedBy=wayland-session@hyprland.desktop.target
|
||||||
18
hydros-systemd-units/systemd/user/quickshell.service
Normal file
18
hydros-systemd-units/systemd/user/quickshell.service
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=A shell developed by outfoxxed
|
||||||
|
# order startup after WM
|
||||||
|
After=graphical-session.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=exec
|
||||||
|
# Repurpose XDG Autostart filtering
|
||||||
|
ExecCondition=/lib/systemd/systemd-xdg-autostart-condition "wlroots:sway:Wayfire:labwc:Hyprland" ""
|
||||||
|
ExecStart=/usr/bin/quickshell
|
||||||
|
Restart=on-failure
|
||||||
|
Slice=app-graphical.slice
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=graphical-session.target
|
||||||
|
# Alternatively can be wanted by specific WMs' targets
|
||||||
|
# Should also be duplicated in 'After=' to avoid ordering loop
|
||||||
|
#WantedBy=wayland-session@hyprland.desktop.target
|
||||||
10
hydros-systemd-units/systemd/user/ssh-agent.service
Normal file
10
hydros-systemd-units/systemd/user/ssh-agent.service
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=SSH key agent
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
|
||||||
|
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
Reference in New Issue
Block a user