From d9549214c6ab20d6bc76f439b1e4fb048e5bc9df Mon Sep 17 00:00:00 2001 From: ahtlon Date: Wed, 18 Feb 2026 22:24:55 +0100 Subject: [PATCH] Add autoupdate runner + fix a typo in the vaultwarden config --- .gitea/workflows/autoupdate.yml | 41 ++++++++++++++++++++++++++ machines/vaultwarden/configuration.nix | 2 +- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 .gitea/workflows/autoupdate.yml diff --git a/.gitea/workflows/autoupdate.yml b/.gitea/workflows/autoupdate.yml new file mode 100644 index 00000000..c7491fdf --- /dev/null +++ b/.gitea/workflows/autoupdate.yml @@ -0,0 +1,41 @@ +name: Weekly Flake Update + +on: + schedule: + - cron: "0 0 * * 4" + workflow_dispatch: + +permissions: + contents: write + +jobs: + update_and_check_flake: + runs-on: ubuntu-latest + env: + NIXPKGS_ALLOW_UNFREE: 1 + steps: + - name: Install sudo + run: | + apt-get update + apt-get install -y sudo + - uses: https://code.forgejo.org/actions/checkout@v6 + + - name: Set up Nix + uses: https://github.com/cachix/install-nix-action@v31 + with: + github_access_token: ${{ secrets.AHTLONS_GITHUB_TOKEN }} #Fuck github + + - name: Run nix flake update + run: nix flake update + - name: Run nix flake check + run: nix flake check --all-systems --verbose + + - name: Create Gitea PR + uses: https://github.com/Mai0313/create-pull-request + with: + github-server-url: https://git.dynamicdiscord.de + token: ${{ secrets.AHTLONS_GITEA_TOKEN }} + commit-message: 'Update flake.lock' + committer: 'malobot ' + title: 'Update flake.lock' + assignees: 'ahtlon' diff --git a/machines/vaultwarden/configuration.nix b/machines/vaultwarden/configuration.nix index 8ae1e299..8a437116 100644 --- a/machines/vaultwarden/configuration.nix +++ b/machines/vaultwarden/configuration.nix @@ -38,7 +38,7 @@ with lib; backupDir = "/var/local/vaultwarden/backup"; environmentFile = config.sops.secrets.vaultwarden_env.path; config = { - DOMAIN = "http://keys.malobeo.org"; + DOMAIN = "https://keys.malobeo.org"; SIGNUPS_ALLOWED = true; #WEBSERVER ROCKET_ADDRESS = "127.0.0.1";