From f8411ac7e9b65c5e45947ef98bb94467cf5da2ac Mon Sep 17 00:00:00 2001 From: Alexander Kobjolke Date: Tue, 1 Aug 2023 15:34:19 +0200 Subject: [PATCH] thrall: Combine two inlined modules --- flake.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 633ac3e..02cdac8 100644 --- a/flake.nix +++ b/flake.nix @@ -47,16 +47,13 @@ system = "x86_64-linux"; specialArgs = { inherit inputs; }; modules = [ - ({ inputs, ... }: { + ({ inputs, lib, ... }: { nixpkgs = { config.allowUnfree = true; overlays = with inputs; [ emacs.overlay ]; }; + nix.registry = lib.mapAttrs (_: value: { flake = value; }) inputs; }) - { - nix.registry = - nixpkgs.lib.mapAttrs (_: value: { flake = value; }) inputs; - } snm.nixosModule ./modules/security.nix ./hosts/thrall