diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-07-21 07:31:45 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-07-21 08:13:11 -0700 |
| commit | 23f8df7396d35744069a4bda0d1d38a55ff64b79 (patch) | |
| tree | 772b5e72355e9ee5b3ae31aef37fe1d4508e8f30 /nix/users/profiles/git.nix | |
| parent | add docker helpers and clean up some dependencies (diff) | |
| download | infra-23f8df7396d35744069a4bda0d1d38a55ff64b79.tar.gz | |
refactoring to use flake-parts and automatic imports of hosts
This is the first step in a large refactoring to use flake-parts, and to
automatically imports hosts based on paths.
Diffstat (limited to '')
| -rw-r--r-- | nix/users/profiles/git.nix (renamed from nix/users/fcuny/git.nix) | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/nix/users/fcuny/git.nix b/nix/users/profiles/git.nix index ad96bfb..de066e2 100644 --- a/nix/users/fcuny/git.nix +++ b/nix/users/profiles/git.nix @@ -1,4 +1,12 @@ -{ lib, pkgs, ... }: +{ + config, + lib, + pkgs, + ... +}: +let + inherit (config) userinfo; +in { home.packages = with pkgs; [ gitAndTools.pre-commit @@ -27,8 +35,8 @@ options.features = "decorations side-by-side line-numbers"; }; - userName = "Franck Cuny"; - userEmail = "franck@fcuny.net"; + userName = lib.mkDefault userinfo.fullName; + userEmail = lib.mkDefault userinfo.email; aliases = { amend = "commit --amend"; @@ -68,7 +76,7 @@ ignores = [ ".DS_Store" - ".aider.chat.history.md" + ".aider.*" ".direnv" ".envrc" ]; |
