refactor(secrets): drop the redundant work gitconfig from core (#347)

This commit is contained in:
ryan4yin | 二花 authored and GitHub committed 2026-10-02 13:53:15 +08:00
1 parent 0c8f0fe0c3
commit a958ddf8ed
1 file changed
-9
-9
View File
@@ -3,7 +3,6 @@
lib,
pkgs,
myvars,
osConfig,
...
}:
{
@@ -15,14 +14,6 @@
rm -f ${config.home.homeDirectory}/.gitconfig
'';
# Work identity (email/name) lives encrypted in nix-secrets and is symlinked
# to ~/work/.gitconfig, which `programs.git.includes` below makes git read for
# repos under ~/work. `work-gitconfig` is only declared on desktops, so the
# symlink follows the secret.
home.file."work/.gitconfig" = lib.mkIf ((osConfig.age.secrets or { }) ? "work-gitconfig") {
source = config.lib.file.mkOutOfStoreSymlink "/etc/agenix/work-gitconfig";
};
# GitHub CLI tool
# https://cli.github.com/manual/
home.packages = [ pkgs.gh ];