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:
parent
c31b4e330e
commit
2b382e499a
8 changed files with 86 additions and 0 deletions
1
tests/modules/programs/earthly/default.nix
Normal file
1
tests/modules/programs/earthly/default.nix
Normal file
|
|
@ -0,0 +1 @@
|
|||
{ earthly-settings = ./earthly-settings.nix; }
|
||||
21
tests/modules/programs/earthly/earthly-settings.nix
Normal file
21
tests/modules/programs/earthly/earthly-settings.nix
Normal 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}
|
||||
'';
|
||||
}
|
||||
6
tests/modules/programs/earthly/earthly-settings.yml
Normal file
6
tests/modules/programs/earthly/earthly-settings.yml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
git:
|
||||
github.com:
|
||||
auth: ssh
|
||||
user: username
|
||||
global:
|
||||
disable_analytics: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue