feat(git-sync): Put git-sync behind an option
This commit is contained in:
parent
f340a71aed
commit
88878e82b1
2 changed files with 6 additions and 2 deletions
|
|
@ -50,6 +50,8 @@
|
|||
|
||||
news.display = "silent";
|
||||
|
||||
my.git-sync.enable = true;
|
||||
|
||||
programs = {
|
||||
alacritty.enable = true;
|
||||
# autorandr.enable = true;
|
||||
|
|
|
|||
|
|
@ -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" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue