1
0
Fork 0
mirror of https://github.com/Mic92/sops-nix.git synced 2025-03-31 04:14:37 +00:00

Merge pull request #79 from hackworthltd/master

Add an overlay to the flake.
This commit is contained in:
Jörg Thalheim 2021-02-08 08:43:35 +00:00 committed by GitHub
commit c3d43f833b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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; };