No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
modules
pkgs
COPYING
README.org
default.nix

README.org

Trusted Key nixpkgs overlay

Usage

Testing it out with nix-shell

nix-shell -E 'with import <nixpkgs> { overlays = [ (import (builtins.fetchTarball "https://api.github.com/repos/trustedkey/nixpkgs-trustedkey/tarball/master")) ]; }; runCommand "quick-and-dirty" { buildInputs = [ tk-ssh-agent ]; } ""'

User local

Put this in ~/.config/nixpkgs/overlays.nix

[
  (import (builtins.fetchTarball "https://api.github.com/repos/trustedkey/nixpkgs-trustedkey/tarball/master"))
]

Now you can either

nix-shell -p tk-ssh-agent

or

nix-env -iA tk-ssh-agent

System wide (declarative confiuration)

Add overlay to your configuration.nix

# To install packages in systemPackages
nixpkgs.overlays = [
  (import ../overlays/nixpkgs-trustedkey/default.nix)
];

# To use the provided services (tk-ssh-agent)
imports = [
  ../overlays/nixpkgs-trustedkey/modules/default.nix
];

And add the packages you want

environment.systemPackages = with pkgs; [
  tk-ssh-agent
  tk-ssh-authkeys
];

Or use the provided systemd service

services.tk-ssh-agent.enable = true;