forgejo-actions-run.: use runner pkg from unstable to make it work again

This commit is contained in:
June 2025-10-24 19:09:16 +02:00
commit 550b0f13ca
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0
3 changed files with 27 additions and 4 deletions

View file

@ -6,6 +6,7 @@
# https://nixos.org/manual/nixos/stable/#sec-upgrading
# https://github.com/NixOS/nixpkgs
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
# Add nixos-generators as an input.
# See here: https://github.com/nix-community/nixos-generators#using-in-a-flake
@ -27,12 +28,13 @@
};
};
outputs = { self, nixpkgs, nixos-generators, sops-nix, authorizedKeysRepo, ... }:
outputs = { self, nixpkgs, nixos-generators, nixpkgs-unstable, sops-nix, authorizedKeysRepo, ... }:
let
specialArgs = {
inherit authorizedKeysRepo;
};
system = "x86_64-linux";
pkgs-unstable = nixpkgs-unstable.legacyPackages."${system}";
in
{
nixosModules = {
@ -135,7 +137,7 @@
};
forgejo-actions-runner = nixpkgs.lib.nixosSystem {
inherit system specialArgs;
inherit system;
modules = [
self.nixosModules.common
self.nixosModules.proxmox-vm
@ -143,6 +145,10 @@
self.nixosModules.prometheus-exporter
./config/hosts/forgejo-actions-runner
];
specialArgs = {
inherit authorizedKeysRepo;
inherit pkgs-unstable;
};
};
ptouch-print-server = nixpkgs.lib.nixosSystem {