Refactored mkFlake

This commit is contained in:
James Patrick 2022-08-08 22:28:48 -04:00
parent e96cbd6209
commit 7c2f9d4f11

View File

@ -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";
};
};
}