feat(git-sync): Put git-sync behind an option

This commit is contained in:
Alexander Kobjolke 2024-03-29 00:14:26 +01:00
parent f340a71aed
commit 88878e82b1
2 changed files with 6 additions and 2 deletions

View file

@ -50,6 +50,8 @@
news.display = "silent";
my.git-sync.enable = true;
programs = {
alacritty.enable = true;
# autorandr.enable = true;

View file

@ -1,7 +1,9 @@
{ config, lib, pkgs, ... }:
let cfg = config.my.git-sync;
in {
options.my.git-sync = { enable = lib.mkEnableOption "git-sync"; };
{
config.services.git-sync = {
config.services.git-sync = lib.mkIf cfg.enable {
enable = true;
repositories = {
"org" = {