Refactored mkFlake

This commit is contained in:
James Patrick 2022-08-08 22:28:48 -04:00
parent e96cbd6209
commit 7c2f9d4f11
1 changed files with 5 additions and 6 deletions

View File

@ -28,7 +28,11 @@
outputs = inputs@{ self, utils, nixpkgs, nixos-hardware, nur, home-manager outputs = inputs@{ self, utils, nixpkgs, nixos-hardware, nur, home-manager
, emacs-overlay, ... }: , emacs-overlay, ... }:
utils.lib.mkFlake { let inherit (utils.lib) mkFlake exportModules;
in mkFlake {
inherit self inputs;
supportedSystems = [ "x86_64-linux" ];
hosts = { hosts = {
nil.modules = [ nil.modules = [
nixos-hardware.nixosModules.lenovo-thinkpad-t14-amd-gen2 nixos-hardware.nixosModules.lenovo-thinkpad-t14-amd-gen2
@ -36,10 +40,6 @@
]; ];
}; };
# Shared logic below.
inherit self inputs;
supportedSystems = [ "x86_64-linux" ];
channels.nixpkgs = { channels.nixpkgs = {
input = nixpkgs; input = nixpkgs;
overlaysBuilder = channels: [ ]; overlaysBuilder = channels: [ ];
@ -59,6 +59,5 @@
]; ];
system = "x86_64-linux"; system = "x86_64-linux";
}; };
}; };
} }