From ea3dad5b2fa7b8b2336015fdac025628cfa18380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 11 Apr 2025 08:52:06 +0200 Subject: [PATCH 1/3] add ci --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ flake.nix | 4 +++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9fe327f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + merge_group: + +permissions: + contents: read + +jobs: + nix-build: + runs-on: "${{ matrix.os }}" + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + # not supported by the flake atm + #- ubuntu-22.04-arm + #- macos-latest + steps: + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v31 + - uses: cachix/cachix-action@v16 + with: + name: nixos-infra-dev + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - run: nix run --inputs-from . nixpkgs#nix-fast-build -- --skip-cached --no-nom diff --git a/flake.nix b/flake.nix index 381ec58..d599d63 100644 --- a/flake.nix +++ b/flake.nix @@ -66,9 +66,11 @@ }; - defaultPackage.x86_64-linux = (import nixpkgs { + packages.default.x86_64-linux = (import nixpkgs { system = "x86_64-linux"; overlays = [ self.overlays.default ]; }).nixos-channel-scripts; + + checks.x86_64-linux.default = self.packages.default.x86_64-linux; }; } From 5d4092f46f225739305c1536e51aaa758119ef22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 11 Apr 2025 08:56:18 +0200 Subject: [PATCH 2/3] update flakes --- flake.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 8016a76..da2a406 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1717667611, - "narHash": "sha256-MA50QcNTCV3AUc+0RtyhHcYMAZ81ZkVypm/lHUq5BP0=", + "lastModified": 1735651292, + "narHash": "sha256-YLbzcBtYo1/FEzFsB3AnM16qFc6fWPMIoOuSoDwvg9g=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "d1930fa7524da1d320d00eecba84e81810477f3a", + "rev": "0da3c44a9460a26d2025ec3ed2ec60a895eb1114", "type": "github" }, "original": { From c0b9c40e7dda38b16d5189a8f21ea30e700852e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 11 Apr 2025 08:59:38 +0200 Subject: [PATCH 3/3] add renovate bot --- renovate.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 renovate.json diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000..723c931 --- /dev/null +++ b/renovate.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": ["config:base", ":dependencyDashboard"], + "nix": { + "enabled": true + }, + "lockFileMaintenance": { "enabled": true } +}