pinwheel: Add enable option to git module

And use it to check when to add work `gitconfig`
This commit is contained in:
Alexander Heldt
2023-10-01 22:54:00 +02:00
parent 4fc4726f22
commit 408751cce5
3 changed files with 25 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
{ pkgs, lib, config, ... }:
let
gitEnabled = config.mod.git.enable;
openvpnEnabled = config.mod.openvpn.enable;
work-vpn = let
@@ -25,7 +26,7 @@ let
in
{
home-manager.users.alex = {
programs.git = {
programs.git = lib.mkIf gitEnabled {
includes = [
{
path = ./work-gitconfig;