Made git config conditional based on home-manager version
This commit is contained in:
@@ -1,16 +1,20 @@
|
||||
{ ... }: {
|
||||
{ options, ... }: {
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
fonts.fontconfig.enable = true;
|
||||
|
||||
programs = {
|
||||
home-manager.enable = true;
|
||||
git = {
|
||||
git = if builtins.hasAttr "settings" options.programs.git then {
|
||||
enable = true;
|
||||
settings.user = {
|
||||
name = "Random936";
|
||||
email = "randomdude936@gmail.com";
|
||||
};
|
||||
} else {
|
||||
enable = true;
|
||||
userName = "Random936";
|
||||
userEmail = "randomdude936@gmail.com";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user