summaryrefslogtreecommitdiff
path: root/dots_manager/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'dots_manager/config.py')
-rw-r--r--dots_manager/config.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/dots_manager/config.py b/dots_manager/config.py
new file mode 100644
index 0000000..d6194f6
--- /dev/null
+++ b/dots_manager/config.py
@@ -0,0 +1,14 @@
+from dataclasses import dataclass
+from pathlib import Path
+import os
+
+
+@dataclass(frozen=True)
+class Config:
+ default_target_dir: Path = Path.home()
+ default_source_dir: Path = Path(__file__).parent.parent / "dots"
+ default_compiled_dir: Path = Path("./.compiled_dotfiles/")
+ script_dir: Path = Path("home/scripts")
+ contexts: Path = Path("contexts.json")
+ template_extension: str = ".j2"
+ max_workers: int = (os.cpu_count() or 1) * 2