diff --git a/files/scripts/enable-crond.sh b/files/scripts/enable-crond.sh deleted file mode 100644 index 0c48e54..0000000 --- a/files/scripts/enable-crond.sh +++ /dev/null @@ -1,4 +0,0 @@ -#/usr/bin/env bash -set -euo pipefail - -systemctl enable crond \ No newline at end of file diff --git a/files/scripts/install-earthly.sh b/files/scripts/install-earthly.sh deleted file mode 100644 index 9189683..0000000 --- a/files/scripts/install-earthly.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -set -euo pipefail - -VERSION=v0.7.23 - -wget -q https://github.com/earthly/earthly/releases/download/$VERSION/earthly-linux-amd64 -O /usr/bin/earthly -chmod +x /usr/bin/earthly diff --git a/files/scripts/install-syncthing.sh b/files/scripts/install-syncthing.sh deleted file mode 100644 index 92c4beb..0000000 --- a/files/scripts/install-syncthing.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/bin/env bash -set -oue pipefail - -VERSION="v1.27.1" -BASE_URL="https://github.com/syncthing/syncthing/releases/download" -FILENAME="syncthing-linux-amd64-${VERSION}.tar.gz" -EXTRACTED_DIR="syncthing-linux-amd64-${VERSION}" - -# Download the file -wget --quiet "${BASE_URL}/${VERSION}/${FILENAME}" - -# Extract the file -tar xf "${FILENAME}" - -# Move the binary to /usr/local/bin -mv "${EXTRACTED_DIR}/syncthing" /usr/bin - -# Move .desktop files -mv "${EXTRACTED_DIR}/etc/linux-desktop/"*.desktop /usr/share/applications/ - -# Move the systemd service file -cp "${EXTRACTED_DIR}/etc/linux-systemd/user/syncthing.service" /etc/systemd/system/ - -# Enable the systemd service -systemctl enable syncthing - -# Verify the installation -if command -v syncthing &> /dev/null -then - echo "Syncthing command is found in PATH." -else - echo "Syncthing command not found in PATH." - exit 1 -fi - -# Verify that syncthing --version works -if syncthing --version &> /dev/null -then - echo "Syncthing --version executes successfully." -else - echo "Syncthing --version did not execute successfully." - exit 1 -fi - -# Cleanup -rm -rf "${EXTRACTED_DIR}" diff --git a/files/scripts/setup-kubectl.sh b/files/scripts/setup-kubectl.sh deleted file mode 100644 index 6bf9208..0000000 --- a/files/scripts/setup-kubectl.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -set -oue pipefail - -cat < /etc/yum.repos.d/vscode.repo' diff --git a/recipes/common/dev-packages.yml b/recipes/common/dev-packages.yml index ac4eebf..a7ec290 100644 --- a/recipes/common/dev-packages.yml +++ b/recipes/common/dev-packages.yml @@ -1,3 +1,5 @@ +--- +# yaml-language-server: $schema=https://schema.blue-build.org/module-list-v1.json modules: - from-file: common/docker-engine.yml - type: rpm-ostree @@ -34,5 +36,3 @@ modules: scripts: - install-mkcert.sh - install-codelldb.sh - # snippets: - # - curl -fsSL https://ollama.com/install.sh | sed 's|/usr/local/bin||' | sh diff --git a/recipes/common/jp-packages.yml b/recipes/common/jp-packages.yml index efe6b8d..cfaff94 100644 --- a/recipes/common/jp-packages.yml +++ b/recipes/common/jp-packages.yml @@ -2,8 +2,6 @@ # yaml-language-server: $schema=https://schema.blue-build.org/module-list-v1.json modules: - type: script - scripts: - - install-syncthing.sh snippets: - rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc - type: rpm-ostree @@ -25,4 +23,9 @@ modules: - xclip - bat - brave-browser + - syncthing + - type: systemd + user: + enabled: + - syncthing - from-file: common/ms-fonts.yml diff --git a/recipes/jp-truenas.yml b/recipes/jp-truenas.yml index 95ae665..eeb64fe 100644 --- a/recipes/jp-truenas.yml +++ b/recipes/jp-truenas.yml @@ -8,9 +8,16 @@ stages: - from-file: common/helix.yml modules: - from-file: common/updates.yml - - type: script - scripts: - - install-syncthing.sh + # - type: script + # scripts: + # - install-syncthing.sh + - type: rpm-ostree + install: + - syncthing + - type: systemd + user: + enabled: + - syncthing - type: fonts fonts: nerd-fonts: