From d0f2c66824c6873330e4ce0e403a93edd71655b3 Mon Sep 17 00:00:00 2001 From: tezlm Date: Thu, 18 Jan 2024 19:05:33 -0800 Subject: [PATCH] add attic --- flake.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index e1e6b5b..9dc44b2 100644 --- a/flake.nix +++ b/flake.nix @@ -2,14 +2,15 @@ description = "nix builder for ci"; inputs.nixpkgs.url = "github:NixOS/nixpkgs"; + inputs.attic.url = "github:zhaofengli/attic"; - outputs = { self, nixpkgs }: let + outputs = { self, nixpkgs, attic }: let pkgs = import nixpkgs { system = "x86_64-linux"; }; in { packages.x86_64-linux.default = pkgs.dockerTools.buildImage { name = "nix-builder"; tag = "latest"; - copyToRoot = with pkgs; [coreutils cacert nix curl]; + copyToRoot = with pkgs; [coreutils cacert nix git git-lfs bash] ++ [attic.packages."x86_64-linux".default]; runAsRoot = '' #!${pkgs.runtimeShell}