Remove nix-configured items from deploy.py
This commit is contained in:
17
deploy.py
17
deploy.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user