feat: remove WSL-specific aliases and 1Password agent bridge script; add dependency checks and installation for Python packages
Some checks failed
Nix Format Check / check-format (push) Failing after 38s

This commit is contained in:
2025-03-10 15:59:28 +01:00
parent 62954eb986
commit 6c095843ba
5 changed files with 44 additions and 39 deletions

View File

@ -10,18 +10,9 @@ import glob
sys.path.append(os.path.join(os.path.expanduser("~/.dotfiles"), "bin"))
from helpers.functions import printfe, run_command
def is_wsl():
"""Check if running under WSL"""
try:
with open('/proc/version', 'r') as f:
return 'microsoft' in f.read().lower()
except:
return False
def get_password():
"""Get password from 1Password"""
# Choose the appropriate op command based on WSL status
op_cmd = "op.exe" if is_wsl() else "op"
op_cmd = "op"
# Try to get the password
success, output = run_command([op_cmd, "item", "get", "Dotfiles Secrets", "--fields", "password"])