Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add git lfs to tier3-builder and nixos-builder #24

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions linode/nixos-builder/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let

hooksPath = pkgs.runCommandLocal "buildkite-agent-hooks" {} ''
mkdir $out

ln -s ${buildkitePreBootstrap} $out/pre-bootstrap

cat > $out/pre-checkout << EOF
Expand All @@ -52,6 +52,7 @@ in
environment.systemPackages = with pkgs; [
docker-compose
git
git-lfs
neovim
tmux

Expand All @@ -74,6 +75,11 @@ in

programs.zsh.enable = true;
programs.mosh.enable = true;
# Git LFS configuration
programs.git = {
enable = true;
lfs.enable = true;
};

users.defaultUserShell = pkgs.zsh;
users.users.root.openssh.authorizedKeys.keys = [
Expand All @@ -85,7 +91,7 @@ in
createHome = true;
extraGroups = [ "docker" "keys" ];
shell = pkgs.bash;
packages = [ pkgs.buildkite-agent pkgs.bash pkgs.nix ];
packages = [ pkgs.buildkite-agent pkgs.bash pkgs.nix pkgs.git-lfs ];
};

systemd.services.buildkite-agent = {
Expand Down
10 changes: 8 additions & 2 deletions linode/tier3-builder/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ let

hooksPath = pkgs.runCommandLocal "buildkite-agent-hooks" {} ''
mkdir $out

ln -s ${buildkitePreBootstrap} $out/pre-bootstrap

cat > $out/pre-checkout << EOF
Expand All @@ -58,6 +58,7 @@ in
environment.systemPackages = with pkgs; [
docker-compose
git
git-lfs
neovim
tmux

Expand All @@ -83,6 +84,11 @@ in

programs.zsh.enable = true;
programs.mosh.enable = true;
# Git LFS configuration
programs.git = {
enable = true;
lfs.enable = true;
};

users.defaultUserShell = pkgs.zsh;
users.users.root.openssh.authorizedKeys.keys = [
Expand All @@ -94,7 +100,7 @@ in
createHome = true;
extraGroups = [ "docker" "keys" ];
shell = pkgs.bash;
packages = [ pkgs.buildkite-agent pkgs.bash pkgs.nix ];
packages = [ pkgs.buildkite-agent pkgs.bash pkgs.nix pkgs.git-lfs ];
};

systemd.services.buildkite-agent = {
Expand Down