{ config, ... }: { # Work git identity (email/name), decrypted from nix-secrets. ~/work/.gitconfig # is what `programs.git.includes` (home/base/core/git.nix) tells git to read # for repos under ~/work. # # This lives in the desktop layer rather than core: base/gui is imported only # by hosts that declare the desktop secret (the NixOS desktops via # home/linux/gui.nix and macOS via home/darwin), so the consumer and the # secret share the same gate. home.file."work/.gitconfig".source = config.lib.file.mkOutOfStoreSymlink "/etc/agenix/work-gitconfig"; }