Refactored mkFlake
This commit is contained in:
parent
e96cbd6209
commit
7c2f9d4f11
11
flake.nix
11
flake.nix
|
@ -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";
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue
Block a user