add attic

This commit is contained in:
tezlm 2024-01-18 19:05:33 -08:00
parent 47d99094cd
commit d0f2c66824
Signed by: tezlm
GPG key ID: 649733FCD94AFBBA

View file

@ -2,14 +2,15 @@
description = "nix builder for ci"; description = "nix builder for ci";
inputs.nixpkgs.url = "github:NixOS/nixpkgs"; 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"; }; pkgs = import nixpkgs { system = "x86_64-linux"; };
in { in {
packages.x86_64-linux.default = pkgs.dockerTools.buildImage { packages.x86_64-linux.default = pkgs.dockerTools.buildImage {
name = "nix-builder"; name = "nix-builder";
tag = "latest"; 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 = '' runAsRoot = ''
#!${pkgs.runtimeShell} #!${pkgs.runtimeShell}