From 3c1b9197b08894d15ca73eeb04caa728ebea39ce Mon Sep 17 00:00:00 2001 From: Eduard Bopp Date: Tue, 26 Jan 2021 13:25:51 +0100 Subject: [PATCH] Fix basic flake structure This makes at least `nix flake show` work and some of the packages. --- flake.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 3880762..e2f15af 100644 --- a/flake.nix +++ b/flake.nix @@ -13,7 +13,9 @@ forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system); in { nixosModules.sops = import ./modules/sops; - packages = forAllSystems (system: nixpkgs.legacyPackages.${system}.callPackage ./default.nix {}); + packages = forAllSystems (system: import ./default.nix { + pkgs = import nixpkgs { inherit system; }; + }); defaultPackage = forAllSystems (system: self.packages.${system}.sops-init-gpg-key); }; }