feat(git): enable LFS

This commit is contained in:
Tibo De Peuter 2026-04-28 08:17:20 +02:00
parent 60d9c07eae
commit 8e65aaaf60
No known key found for this signature in database
GPG key ID: 9187B5FA0F4B6F6D
3 changed files with 14 additions and 2 deletions

View file

@ -31,6 +31,7 @@
programs = {
direnv.enable = true;
git.enable = true;
home-manager.enable = true;
sops.enable = true;
ssh.enable = true;
@ -63,7 +64,6 @@
};
environment.systemPackages = with pkgs; [
git
vim-full
w3m
wget

View file

@ -37,6 +37,7 @@
programs = {
direnv.enable = true;
git.enable = true;
home-manager.enable = true;
sops.enable = true;
ssh.enable = true;
@ -168,7 +169,6 @@
localBinInPath = true;
systemPackages = with pkgs; [
git
vim-full # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
w3m
wget

View file

@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }:
let
cfg = config.sisyphus.programs.git;
in {
options.sisyphus.programs.git.enable = lib.mkEnableOption "Git";
config.programs.git = lib.mkIf cfg.enable {
enable = true;
lfs.enable = true;
};
}