blob: d6194f6ae72bccad3ac044f1695d6ac50780fc86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
|