earthly: init module (#6265)

Earthly is a build configuration framework utilizing buildkit and
Dockerfile-like syntax for simplicity and fast builds.
This commit is contained in:
Hoang Nguyen 2025-02-22 07:04:35 +00:00 committed by GitHub
parent c31b4e330e
commit 2b382e499a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 86 additions and 0 deletions

View file

@ -0,0 +1 @@
{ earthly-settings = ./earthly-settings.nix; }

View file

@ -0,0 +1,21 @@
{
programs.earthly = {
enable = true;
settings = {
global.disable_analytics = true;
git."github.com" = {
auth = "ssh";
user = "username";
};
};
};
test.stubs.earthly = { };
nmt.script = ''
assertFileExists home-files/.earthly/config.yml
assertFileContent home-files/.earthly/config.yml ${./earthly-settings.yml}
'';
}

View file

@ -0,0 +1,6 @@
git:
github.com:
auth: ssh
user: username
global:
disable_analytics: true