diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml new file mode 100644 index 0000000..925cf06 --- /dev/null +++ b/.forgejo/workflows/build.yaml @@ -0,0 +1,11 @@ +on: + push: + branches: ["*"] +jobs: + test: + runs-on: nix + steps: + - uses: actions/checkout@v4 + name: Checkout repository + - name: Build with nix + run: nix-fast-build --no-nom --systems "x86_64-linux aarch64-linux" diff --git a/.forgejo/workflows/update-flake-lock.yaml b/.forgejo/workflows/update-flake-lock.yaml new file mode 100644 index 0000000..eadba29 --- /dev/null +++ b/.forgejo/workflows/update-flake-lock.yaml @@ -0,0 +1,35 @@ +name: update-flake-lock +on: + schedule: + - cron: '0 15 * * *' # daily at 15:00 + +jobs: + lockfile: + runs-on: nix + steps: + - uses: actions/checkout@v4 + name: Checkout repository + with: + token: ${{secrets.SEVENOFNINE_TOKEN}} + - name: Create new branch from the checked out one + run: git switch -c update-flake-lock + - name: Configure git as `Seven of Nix` + run: | + git config --global user.email "sevenofnine@stronzi.org" + git config --global user.name "Seven of Nine" + - name: Update flake's lockfile and create commit + run: nix flake update --commit-lock-file + - name: Push commit to the `update-flake-lock` remote branch + run: git push origin --force update-flake-lock # sevenOfNix needs write access to the repository + - name: Login as `Seven of Nix` + run: | + tea logins add --token ${{secrets.SEVENOFNINE_TOKEN}} --url https://git.aciceri.dev + tea logins default git.aciceri.dev + - name: Create the pull request + run: | + tea pulls create \ + --repo "$GITHUB_REPOSITORY" \ + --title "Update flake's lockfile" \ + --description "Check the commit description for inputs deltas" \ + --assignees aciceri \ + || echo "PR already existing" diff --git a/flake.lock b/flake.lock index 16cfe8d..d1ce141 100644 --- a/flake.lock +++ b/flake.lock @@ -40,14 +40,17 @@ ] }, "locked": { - "lastModified": 1710278059, - "narHash": "sha256-OMmXmA4sDBxxhZBdV0BUr7/x8lRZiSsmJ1YmIOb3k44=", - "path": "/home/ccr/.config/emacs", - "type": "path" + "lastModified": 1710336635, + "narHash": "sha256-tEc3mD8LNujcm94BigiJZTGulCCGOhpXoNebQGzezLA=", + "ref": "refs/heads/master", + "rev": "845e682dc294373370efd5b6db99c48a65070a89", + "revCount": 165, + "type": "git", + "url": "https://git.aciceri.dev/aciceri/emacs.git" }, "original": { - "id": "ccrEmacs", - "type": "indirect" + "type": "git", + "url": "https://git.aciceri.dev/aciceri/emacs.git" } }, "darwin": { diff --git a/flake.nix b/flake.nix index aea7076..377e1ff 100644 --- a/flake.nix +++ b/flake.nix @@ -35,7 +35,7 @@ nur.url = "github:nix-community/NUR"; agenix.url = "github:ryantm/agenix"; rock5b.url = "github:aciceri/rock5b-nixos"; - ccrEmacs.url = "ccrEmacs"; + ccrEmacs.url = "git+https://git.aciceri.dev/aciceri/emacs.git"; treefmt-nix = { url = "github:numtide/treefmt-nix"; inputs.nixpkgs.follows = "nixpkgsUnstable"; diff --git a/hmModules/gpg/default.nix b/hmModules/gpg/default.nix index 6e52e10..a28eb67 100644 --- a/hmModules/gpg/default.nix +++ b/hmModules/gpg/default.nix @@ -16,7 +16,6 @@ allow-loopback-pinentry pinentry-program ${pinentryRofi}/bin/pinentry-rofi-with-env ''; - pinentryFlavor = null; }; programs.gpg = {