From 7c2f9d4f118c184f11547ce11a9e2cd5251d6e74 Mon Sep 17 00:00:00 2001 From: James Patrick Date: Mon, 8 Aug 2022 22:28:48 -0400 Subject: [PATCH] Refactored mkFlake --- flake.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 6ea1a41..14e11f1 100644 --- a/flake.nix +++ b/flake.nix @@ -28,7 +28,11 @@ outputs = inputs@{ self, utils, nixpkgs, nixos-hardware, nur, home-manager , emacs-overlay, ... }: - utils.lib.mkFlake { + let inherit (utils.lib) mkFlake exportModules; + in mkFlake { + + inherit self inputs; + supportedSystems = [ "x86_64-linux" ]; hosts = { nil.modules = [ nixos-hardware.nixosModules.lenovo-thinkpad-t14-amd-gen2 @@ -36,10 +40,6 @@ ]; }; - # Shared logic below. - inherit self inputs; - supportedSystems = [ "x86_64-linux" ]; - channels.nixpkgs = { input = nixpkgs; overlaysBuilder = channels: [ ]; @@ -59,6 +59,5 @@ ]; system = "x86_64-linux"; }; - }; }