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:
parent
26ebfe66bc
commit
0f12915de4
2
sync
2
sync
|
@ -10,7 +10,7 @@ def main() -> None:
|
||||||
source = Path("/etc/nixos")
|
source = Path("/etc/nixos")
|
||||||
destination = Path(__file__).parent / hostname
|
destination = Path(__file__).parent / hostname
|
||||||
print(source, destination)
|
print(source, destination)
|
||||||
shutil.copytree(source, destination, dirs_exist_ok=True)
|
shutil.copytree(source, destination / "etc" / "nixos", dirs_exist_ok=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue