Skip to content

Commit

Permalink
Simplify lanzaboote inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
42LoCo42 committed May 21, 2024
1 parent d5c80e9 commit ff820ae
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,11 @@
let
inherit (nixpkgs.lib) mapAttrsToList pipe recursiveUpdate;

mkLanza030 = pkgs: import (pkgs.fetchFromGitHub {
owner = "nix-community";
repo = "lanzaboote";
rev = "v0.3.0";
hash = "sha256-Fb5TeRTdvUlo/5Yi2d+FC8a6KoRLk2h1VE0/peMhWPs=";
});

nyx = builtins.getFlake "github:notashelf/nyxpkgs/a9c2ef2ea7c4b7e5036f7c60108df2bbcfc9a3c4?narHash=sha256-NiL7KfpHhUx7zLVFKtwPz7d9uJq/ABQEqf1y/lTWSGI=";
lanza030 = builtins.getFlake "github:nix-community/lanzaboote/64b903ca87d18cef2752c19c098af275c6e51d63?narHash=sha256-Fb5TeRTdvUlo/5Yi2d%2BFC8a6KoRLk2h1VE0/peMhWPs%3D";

mkPackages = system:
let
pkgs = import nixpkgs { inherit system; };
lanza030 = mkLanza030 pkgs;
in
rec {
let pkgs = import nixpkgs { inherit system; }; in rec {
# argon-kg = self.inputs.argon-kg.outputs.defaultPackage.${system};
# boomer = pkgs.callPackage ./packages/boomer.nix { inherit nimblePkgs; };
# certbot-dns-duckdns = pkgs.callPackage ./packages/certbot-dns-duckdns.nix { };
Expand Down Expand Up @@ -131,7 +121,7 @@
packages = self.outputs.packages;
};

inherit ((mkLanza030 pkgs).nixosModules) lanzaboote;
inherit (lanza030.nixosModules) lanzaboote;
};

templates = let dir = ./templates; in pipe dir [
Expand Down

0 comments on commit ff820ae

Please sign in to comment.