toggle physics

This commit is contained in:
martyTF 2025-12-18 11:47:21 +01:00
parent 44a2f3ee01
commit e13ad6a8ee
13 changed files with 79 additions and 112 deletions

View file

@ -4,34 +4,30 @@
pkgs,
...
}:
let
enable_git =
if config.networking.hostName == "marty-pc" then
true
else if config.networking.hostName == "marty-latitude" then
true
else if config.networking.hostName == "marty-server" then
true
else
false;
in
{
programs = {
git = {
enable = enable_git;
config = {
init = {
defaultBranch = "main";
options = {
development = {
git.enable = lib.mkEnableOption "enable git";
};
};
config = lib.mkIf config.development.git.enable {
programs = {
git = {
enable = true;
settings = {
init = {
defaultBranch = "main";
};
user = {
email = "marty@marty.tf";
name = "marty";
};
push = {
autoSetupRemote = true;
};
};
user = {
email = "marty@marty.tf";
name = "marty";
};
push = {
autoSetupRemote = true;
};
credential.helper = "libsecret";
};
};
};