refactor: simplify host composition and shared feature config
This commit is contained in:
@@ -3,12 +3,10 @@
|
||||
flake.modules.homeManager.git =
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
user = config.meta.user;
|
||||
usesScopedIdentity = user != null && user.sourceControl.profiles != { };
|
||||
in
|
||||
{
|
||||
programs.git = {
|
||||
@@ -20,8 +18,6 @@
|
||||
];
|
||||
settings = {
|
||||
init.defaultBranch = "main";
|
||||
}
|
||||
// lib.optionalAttrs (!usesScopedIdentity) {
|
||||
user = {
|
||||
name = user.realName;
|
||||
email = user.primaryEmail.address;
|
||||
|
||||
Reference in New Issue
Block a user