mirror of
https://github.com/Mic92/sops-nix.git
synced 2024-12-14 11:57:52 +00:00
3c1b9197b0
This makes at least `nix flake show` work and some of the packages.
21 lines
635 B
Nix
21 lines
635 B
Nix
{
|
|
description = "Integrates sops into nixos";
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
outputs = { self, nixpkgs }: let
|
|
systems = [
|
|
"x86_64-linux"
|
|
"i686-linux"
|
|
"x86_64-darwin"
|
|
"aarch64-linux"
|
|
"armv6l-linux"
|
|
"armv7l-linux"
|
|
];
|
|
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
|
|
in {
|
|
nixosModules.sops = import ./modules/sops;
|
|
packages = forAllSystems (system: import ./default.nix {
|
|
pkgs = import nixpkgs { inherit system; };
|
|
});
|
|
defaultPackage = forAllSystems (system: self.packages.${system}.sops-init-gpg-key);
|
|
};
|
|
}
|