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()
|
dotdir = Path(__file__).parent.resolve().absolute()
|
||||||
|
|
||||||
simple = [
|
simple = [
|
||||||
"gitconfig",
|
|
||||||
"ideavimrc",
|
"ideavimrc",
|
||||||
"lein",
|
"lein",
|
||||||
"tmux.conf",
|
"tmux.conf",
|
||||||
"vimrc",
|
"vimrc",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
simple_migrated = [
|
||||||
|
"gitconfig",
|
||||||
|
]
|
||||||
|
|
||||||
targeted = {
|
targeted = {
|
||||||
"doom": ".doom.d",
|
"doom": ".doom.d",
|
||||||
"kitty": ".config/kitty",
|
"kitty": ".config/kitty",
|
||||||
"xonsh/rc.xsh": ".xonshrc",
|
"xonsh/rc.xsh": ".xonshrc",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
targeted_migrated = {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
def deploy(source_name, target_name, dry_run=False):
|
def deploy(source_name, target_name, dry_run=False):
|
||||||
source = dotdir.joinpath(source_name)
|
source = dotdir.joinpath(source_name)
|
||||||
@@ -51,7 +58,13 @@ def deploy(source_name, target_name, dry_run=False):
|
|||||||
target.symlink_to(source)
|
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:
|
for source in simple:
|
||||||
target = f".{source}"
|
target = f".{source}"
|
||||||
deploy(source, target, dry_run=dry_run)
|
deploy(source, target, dry_run=dry_run)
|
||||||
|
|||||||
Reference in New Issue
Block a user