home-manager: Use minimal module set and import everything else manually

This commit is contained in:
SebastianStork 2026-02-19 18:05:49 +01:00
parent 0b87addc97
commit 0c25e7fd34
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
18 changed files with 98 additions and 6 deletions

View file

@ -1,5 +1,22 @@
{ config, lib, ... }:
{
config,
modulesPath,
lib,
...
}:
{
imports = [
"${modulesPath}/programs/git.nix"
"${modulesPath}/programs/lazygit.nix"
"${modulesPath}/programs/delta.nix"
"${modulesPath}/programs/jujutsu.nix"
"${modulesPath}/programs/diff-highlight.nix"
"${modulesPath}/programs/diff-so-fancy.nix"
"${modulesPath}/programs/difftastic.nix"
"${modulesPath}/programs/patdiff.nix"
"${modulesPath}/programs/riff.nix"
];
options.custom.programs.git.enable = lib.mkEnableOption "";
config = lib.mkIf config.custom.programs.git.enable {