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";
|
news.display = "silent";
|
||||||
|
|
||||||
|
my.git-sync.enable = true;
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
alacritty.enable = true;
|
alacritty.enable = true;
|
||||||
# autorandr.enable = true;
|
# autorandr.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,9 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
let cfg = config.my.git-sync;
|
||||||
|
in {
|
||||||
|
options.my.git-sync = { enable = lib.mkEnableOption "git-sync"; };
|
||||||
|
|
||||||
{
|
config.services.git-sync = lib.mkIf cfg.enable {
|
||||||
config.services.git-sync = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
repositories = {
|
repositories = {
|
||||||
"org" = {
|
"org" = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue