change from mono-home-manager to full flake multi-system configuration

This commit is contained in:
wieerwill
2025-11-30 12:28:05 +01:00
parent 5c3a992f34
commit 362f65c384
62 changed files with 4469 additions and 576 deletions

39
home/git.nix Normal file
View File

@@ -0,0 +1,39 @@
{ config, pkgs, lib, ... }:
#let
# gitEmailPath = "${config.xdg.configHome}/git-email";
#in
let
cfg = config.homeModules.git;
in
lib.mkIf cfg.enable {
programs.git = {
enable = true;
userName = "wieerwill";
userEmail = "wieerwill@protonmail.com"; #lib.mkIf (builtins.pathExists gitEmailPath) (
# lib.strings.removeSuffix "\n" (builtins.readFile gitEmailPath)
#);
lfs.enable = true;
aliases = { };
#signing = {
# key = "ssh-ed25519 ...";
# signByDefault = true;
#};
extraConfig = {
#gpg = {
# format = "ssh";
#};
init.defaultBranch = "main";
push.autoSetupRemote = true;
credential.helper = "libsecret";
#credential.helper = "${
# pkgs.git.override { withLibsecret = true; }
# }/bin/git-credential-libsecret";
};
};
}