Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using the nix flake #48

Open
ak2k opened this issue Jul 23, 2023 · 2 comments
Open

using the nix flake #48

ak2k opened this issue Jul 23, 2023 · 2 comments

Comments

@ak2k
Copy link

ak2k commented Jul 23, 2023

What's the best way to go about leveraging this from home manager?

@joaojacome
Copy link
Owner

joaojacome commented Jul 24, 2023

I'd say using the flake directly, something like this:

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    home-manager = {
      url = github:nix-community/home-manager;
      inputs.nixpkgs.follows = "nixpkgs";
    };
    bitwarden-ssh-agent = {
      url = github:joaojacome/bitwarden-ssh-agent;
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };
  outputs = { nixpkgs, home-manager, bitwarden-ssh-agent... }: {
    modules = [
      { nixpkgs.overlays = [ bitwarden-ssh-agent.overlays.default ]; }
      ./home.nix
    ];
  }

I'm not sure how to use it without importing the flake, though.

@zodman
Copy link
Contributor

zodman commented Mar 10, 2024

For non NixOS:

nix profile install github:joaojacome/bitwarden-ssh-agent

or:

nix shell github:joaojacome/bitwarden-ssh-agent --command bitwarden-ssh-agent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants