clan: fix backup provider completions
This commit is contained in:
parent
7c06b65def
commit
a7f724a804
|
@ -125,8 +125,7 @@ def complete_backup_providers_for_machine(
|
||||||
Provides completion functionality for machine backup providers.
|
Provides completion functionality for machine backup providers.
|
||||||
"""
|
"""
|
||||||
providers: list[str] = []
|
providers: list[str] = []
|
||||||
# TODO: consolidate, if multiple machines are used
|
machine: str = parsed_args.machine
|
||||||
machines: list[str] = parsed_args.machines
|
|
||||||
|
|
||||||
def run_cmd() -> None:
|
def run_cmd() -> None:
|
||||||
try:
|
try:
|
||||||
|
@ -138,7 +137,7 @@ def complete_backup_providers_for_machine(
|
||||||
run(
|
run(
|
||||||
nix_eval(
|
nix_eval(
|
||||||
flags=[
|
flags=[
|
||||||
f"{flake}#nixosConfigurations.{machines[0]}.config.clanCore.backups.providers",
|
f"{flake}#nixosConfigurations.{machine}.config.clanCore.backups.providers",
|
||||||
"--apply",
|
"--apply",
|
||||||
"builtins.attrNames",
|
"builtins.attrNames",
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user