30 lines
580 B
Nix
30 lines
580 B
Nix
{
|
|
config,
|
|
...
|
|
}:
|
|
|
|
let
|
|
inherit (config.secrets) username;
|
|
owner = config.users.users.${username}.name;
|
|
in
|
|
{
|
|
config.sops.templates = {
|
|
".gitconfig.email" = {
|
|
inherit owner;
|
|
path = "/home/${username}/.gitconfig.email";
|
|
content = ''
|
|
[user]
|
|
email = ${config.sops.placeholder."email/personal"}
|
|
'';
|
|
};
|
|
".gitconfig.work.email" = {
|
|
inherit owner;
|
|
path = "/home/${username}/.gitconfig.work.email";
|
|
content = ''
|
|
[user]
|
|
email = ${config.sops.placeholder."email/work"}
|
|
'';
|
|
};
|
|
};
|
|
}
|