Remove nix-configured items from deploy.py

This commit is contained in:
2022-09-01 11:49:17 -07:00
parent a99e68647f
commit b0c77dc890

View File

@@ -7,19 +7,26 @@ home = Path.home().resolve().absolute()
dotdir = Path(__file__).parent.resolve().absolute()
simple = [
"gitconfig",
"ideavimrc",
"lein",
"tmux.conf",
"vimrc",
]
simple_migrated = [
"gitconfig",
]
targeted = {
"doom": ".doom.d",
"kitty": ".config/kitty",
"xonsh/rc.xsh": ".xonshrc",
}
targeted_migrated = {
}
def deploy(source_name, target_name, dry_run=False):
source = dotdir.joinpath(source_name)
@@ -51,7 +58,13 @@ def deploy(source_name, target_name, dry_run=False):
target.symlink_to(source)
def main(dry_run=True):
def main(dry_run=True, nix=True):
global simple, targeted
if not nix:
simple.extend(simple_migrated)
targeted.update(targeted_migrated)
for source in simple:
target = f".{source}"
deploy(source, target, dry_run=dry_run)