Files
google-cookie-retrieval/flake.nix
furiosa dc5877096a Automate Google login with rbw password lookup
- Add rbw integration to retrieve credentials from Bitwarden vault
- Automate email/password entry with Selenium WebDriver
- Handle 2FA by falling back to manual completion
- Add clipboard support for Wayland (wl-copy) and X11 (xclip)
- Add CLI flags: --entry, --no-copy, --manual
- Add DESIGN.md documenting the implementation approach
2026-01-18 22:35:24 -08:00

48 lines
1.2 KiB
Nix

{
description = "Development shell + app for google-cookie-retrieval";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/release-25.05";
outputs = { self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
src = ./.;
inputs = [
pkgs.python3
pkgs.python3Packages.selenium
pkgs.chromedriver
pkgs.chromium
pkgs.xclip
pkgs.wl-clipboard
];
in {
devShells.${system}.default = pkgs.mkShell {
buildInputs = inputs;
shellHook = ''
echo "Development shell with Python, Selenium, and Chromedriver loaded."
'';
};
packages.${system}.default = pkgs.python3Packages.buildPythonApplication {
pname = "google-cookie-retrieval";
version = "0.1.0";
src = self;
propagatedBuildInputs = inputs;
pyproject = false;
installPhase = ''
mkdir -p $out/bin
cp selenium_cookie_extractor_json.py $out/bin/google-cookie-retrieval
chmod +x $out/bin/google-cookie-retrieval
'';
};
apps.${system}.default = {
type = "app";
program = "${self.packages.${system}.default}/bin/google-cookie-retrieval";
};
};
}