mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-23 14:38:26 +01:00
Compare commits
No commits in common. "29032e12326c01d4373e5ec8aee2b10b72709239" and "73b1eedd22a858d20b5db47fe8a18f8265fba8af" have entirely different histories.
29032e1232
...
73b1eedd22
3 changed files with 8 additions and 14 deletions
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
|
|
@ -88,6 +88,7 @@ jobs:
|
||||||
- name: Build check
|
- name: Build check
|
||||||
run: nix build .#checks.x86_64-linux.${{ matrix.check }} --print-build-logs
|
run: nix build .#checks.x86_64-linux.${{ matrix.check }} --print-build-logs
|
||||||
build-server:
|
build-server:
|
||||||
|
name: ${{ matrix.server }}
|
||||||
needs: parse-flake
|
needs: parse-flake
|
||||||
uses: ./.github/workflows/build-host.yml
|
uses: ./.github/workflows/build-host.yml
|
||||||
with:
|
with:
|
||||||
|
|
@ -132,9 +133,10 @@ jobs:
|
||||||
if [[ "$deployed_sha" == "$expected_sha" ]]; then
|
if [[ "$deployed_sha" == "$expected_sha" ]]; then
|
||||||
echo "✅ ${{ matrix.server }} deployed $expected_sha"
|
echo "✅ ${{ matrix.server }} deployed $expected_sha"
|
||||||
exit 0
|
exit 0
|
||||||
|
else
|
||||||
|
echo "⏳ ${{ matrix.server }}: deployed ${deployed_sha::7}, waiting for ${expected_sha::7}..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "⏳ ${{ matrix.server }}: deployed ${deployed_sha::7}, waiting for ${expected_sha::7}..."
|
|
||||||
sleep 5
|
sleep 5
|
||||||
done
|
done
|
||||||
notify:
|
notify:
|
||||||
|
|
@ -144,10 +146,6 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Notify success
|
- name: Notify success
|
||||||
if: needs.await-deploy.result == 'success'
|
if: needs.await-deploy.result == 'success'
|
||||||
env:
|
|
||||||
BODY: |-
|
|
||||||
Commit `${{ github.sha }}` deployed successfully.
|
|
||||||
> ${{ github.event.head_commit.message }}
|
|
||||||
run: |
|
run: |
|
||||||
curl -s \
|
curl -s \
|
||||||
-H "Title: CI: Deployment succeeded" \
|
-H "Title: CI: Deployment succeeded" \
|
||||||
|
|
@ -155,14 +153,10 @@ jobs:
|
||||||
-H "Tags: white_check_mark" \
|
-H "Tags: white_check_mark" \
|
||||||
-H "Actions: view, Open workflow run, ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
|
-H "Actions: view, Open workflow run, ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
|
||||||
-H "Markdown: yes" \
|
-H "Markdown: yes" \
|
||||||
-d "$BODY" \
|
-d $'Commit `'"${GITHUB_SHA::7}"$'` deployed successfully.\n> ${{ github.event.head_commit.message }}' \
|
||||||
https://ntfy.sh/splitleaf
|
https://ntfy.sh/splitleaf
|
||||||
- name: Notify failure
|
- name: Notify failure
|
||||||
if: needs.await-deploy.result == 'failure'
|
if: needs.await-deploy.result == 'failure'
|
||||||
env:
|
|
||||||
BODY: |-
|
|
||||||
Commit `${{ github.sha }}` failed to deploy.
|
|
||||||
> ${{ github.event.head_commit.message }}
|
|
||||||
run: |
|
run: |
|
||||||
curl -s \
|
curl -s \
|
||||||
-H "Title: CI: Deployment failed" \
|
-H "Title: CI: Deployment failed" \
|
||||||
|
|
@ -170,5 +164,5 @@ jobs:
|
||||||
-H "Tags: rotating_light" \
|
-H "Tags: rotating_light" \
|
||||||
-H "Actions: view, Open workflow run, ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
|
-H "Actions: view, Open workflow run, ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
|
||||||
-H "Markdown: yes" \
|
-H "Markdown: yes" \
|
||||||
-d "$BODY" \
|
-d $'Commit `'"${GITHUB_SHA::7}"$'` failed to deploy.\n> ${{ github.event.head_commit.message }}' \
|
||||||
https://ntfy.sh/splitleaf
|
https://ntfy.sh/splitleaf
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,6 @@
|
||||||
custom = {
|
custom = {
|
||||||
programs = {
|
programs = {
|
||||||
hyprland.enable = true;
|
hyprland.enable = true;
|
||||||
waybar.enable = true;
|
|
||||||
rofi.enable = true;
|
rofi.enable = true;
|
||||||
hyprlock.enable = true;
|
hyprlock.enable = true;
|
||||||
};
|
};
|
||||||
|
|
@ -19,6 +18,7 @@
|
||||||
services = {
|
services = {
|
||||||
wpaperd.enable = true;
|
wpaperd.enable = true;
|
||||||
hypridle.enable = true;
|
hypridle.enable = true;
|
||||||
|
waybar.enable = true;
|
||||||
cliphist.enable = true;
|
cliphist.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
options.custom.programs.waybar.enable = lib.mkEnableOption "";
|
options.custom.services.waybar.enable = lib.mkEnableOption "";
|
||||||
|
|
||||||
config = lib.mkIf config.custom.programs.waybar.enable {
|
config = lib.mkIf config.custom.services.waybar.enable {
|
||||||
programs.waybar = {
|
programs.waybar = {
|
||||||
enable = true;
|
enable = true;
|
||||||
systemd.enable = true;
|
systemd.enable = true;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue