mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:46 +01:00
refactor(secrets): drop the redundant work gitconfig from core (#347)
This commit is contained in:
1 parent
0c8f0fe0c3
commit
a958ddf8ed
1 file changed
-9
@@ -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 ];
|
||||
|
||||
Reference in new issue
Block a user