Add dagger CLI to nix runner via github:dagger/nix flake
Dagger was removed from nixpkgs due to trademark concerns. Use the official dagger/nix flake as a flake input instead, passing the package through via specialArgs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
e0d5f28147
commit
a2d2808270
2 changed files with 8 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{ config, pkgs, lib, dagger-pkg, ... }:
|
||||
|
||||
let
|
||||
# Libraries needed by mise-compiled runtimes (python-build, etc.)
|
||||
|
|
@ -500,7 +500,7 @@ in
|
|||
tokenFile = "/etc/forgejo-runner/token.env";
|
||||
labels = [ "nix-container-builder:host" ];
|
||||
hostPackages = with pkgs; [
|
||||
bash coreutils curl dagger gawk gitMinimal gnused jq nodejs wget
|
||||
bash coreutils curl dagger-pkg gawk gitMinimal gnused jq nodejs wget
|
||||
nix skopeo
|
||||
];
|
||||
settings = {
|
||||
|
|
|
|||
|
|
@ -3,6 +3,10 @@
|
|||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||||
dagger = {
|
||||
url = "github:dagger/nix";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
disko = {
|
||||
url = "github:nix-community/disko";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
|
|
@ -13,9 +17,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, disko, home-manager, ... }: {
|
||||
outputs = { nixpkgs, dagger, disko, home-manager, ... }: {
|
||||
nixosConfigurations.ringtail = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
specialArgs = { dagger-pkg = dagger.packages.x86_64-linux.dagger; };
|
||||
modules = [
|
||||
disko.nixosModules.disko
|
||||
home-manager.nixosModules.home-manager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue