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
|
let
|
||||||
# Libraries needed by mise-compiled runtimes (python-build, etc.)
|
# Libraries needed by mise-compiled runtimes (python-build, etc.)
|
||||||
|
|
@ -500,7 +500,7 @@ in
|
||||||
tokenFile = "/etc/forgejo-runner/token.env";
|
tokenFile = "/etc/forgejo-runner/token.env";
|
||||||
labels = [ "nix-container-builder:host" ];
|
labels = [ "nix-container-builder:host" ];
|
||||||
hostPackages = with pkgs; [
|
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
|
nix skopeo
|
||||||
];
|
];
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,10 @@
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
|
||||||
|
dagger = {
|
||||||
|
url = "github:dagger/nix";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
disko = {
|
disko = {
|
||||||
url = "github:nix-community/disko";
|
url = "github:nix-community/disko";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
@ -13,9 +17,10 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { nixpkgs, disko, home-manager, ... }: {
|
outputs = { nixpkgs, dagger, disko, home-manager, ... }: {
|
||||||
nixosConfigurations.ringtail = nixpkgs.lib.nixosSystem {
|
nixosConfigurations.ringtail = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
specialArgs = { dagger-pkg = dagger.packages.x86_64-linux.dagger; };
|
||||||
modules = [
|
modules = [
|
||||||
disko.nixosModules.disko
|
disko.nixosModules.disko
|
||||||
home-manager.nixosModules.home-manager
|
home-manager.nixosModules.home-manager
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue