Add an overlay to the flake.

This commit is contained in:
Drew Hess 2021-02-06 16:47:44 +00:00
parent 4a8cb2bd50
commit ecb42cdcf9
No known key found for this signature in database
GPG key ID: 4DC0BBFBE3FEF428

View file

@ -12,6 +12,12 @@
];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
in {
overlay = final: prev:
let
localPkgs = import ./default.nix { pkgs = final; };
in {
inherit (localPkgs) sops-install-secrets sops-init-gpg-key sops-pgp-hook ssh-to-pgp;
};
nixosModules.sops = import ./modules/sops;
packages = forAllSystems (system: import ./default.nix {
pkgs = import nixpkgs { inherit system; };