From c244843e16b624fcbec5674f7a4c7806c721d5f6 Mon Sep 17 00:00:00 2001 From: Jonathan Hult Date: Tue, 24 Dec 2024 19:23:30 -0600 Subject: [PATCH] Add `git lfs` to `tier3-builder` and `nixos-builder` --- linode/nixos-builder/config.nix | 10 ++++++++-- linode/tier3-builder/config.nix | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/linode/nixos-builder/config.nix b/linode/nixos-builder/config.nix index 2584cd6..b3c6d53 100644 --- a/linode/nixos-builder/config.nix +++ b/linode/nixos-builder/config.nix @@ -26,7 +26,7 @@ let hooksPath = pkgs.runCommandLocal "buildkite-agent-hooks" {} '' mkdir $out - + ln -s ${buildkitePreBootstrap} $out/pre-bootstrap cat > $out/pre-checkout << EOF @@ -52,6 +52,7 @@ in environment.systemPackages = with pkgs; [ docker-compose git + git-lfs neovim tmux @@ -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 = [ @@ -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 = { diff --git a/linode/tier3-builder/config.nix b/linode/tier3-builder/config.nix index 69f5180..4b9f752 100644 --- a/linode/tier3-builder/config.nix +++ b/linode/tier3-builder/config.nix @@ -32,7 +32,7 @@ let hooksPath = pkgs.runCommandLocal "buildkite-agent-hooks" {} '' mkdir $out - + ln -s ${buildkitePreBootstrap} $out/pre-bootstrap cat > $out/pre-checkout << EOF @@ -58,6 +58,7 @@ in environment.systemPackages = with pkgs; [ docker-compose git + git-lfs neovim tmux @@ -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 = [ @@ -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 = {