Make sync put the config files under etc/nixos

This makes it easier to add other files from other directories
This commit is contained in:
Eli Ribble 2024-07-20 03:24:50 +00:00
parent 26ebfe66bc
commit 0f12915de4
2 changed files with 1 additions and 1 deletions

2
sync
View File

@ -10,7 +10,7 @@ def main() -> None:
source = Path("/etc/nixos")
destination = Path(__file__).parent / hostname
print(source, destination)
shutil.copytree(source, destination, dirs_exist_ok=True)
shutil.copytree(source, destination / "etc" / "nixos", dirs_exist_ok=True)