dam you can't conditionally import, cringe

This commit is contained in:
martyTF 2025-12-16 17:01:01 +01:00
parent db5366102b
commit 720828a097
7 changed files with 68 additions and 77 deletions

View file

@ -4,11 +4,22 @@
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 = true;
enable = enable_git;
config = {
init = {
defaultBranch = "main";