refactor: move imports to lib.flattenListSet

This commit is contained in:
Infinidoge 2021-09-23 10:08:25 -04:00
parent df4a46b8a6
commit 9f44af0bde

View file

@ -1,15 +1,16 @@
{ suites, profiles, pkgs, ... }: {
imports = suites.graphic
++ [ ./hardware-configuration.nix ]
++ (with profiles;
[
{ suites, profiles, pkgs, lib, ... }: {
imports = lib.flattenListSet {
suites = suites.graphic;
imports = [ ./hardware-configuration.nix ];
profiles = with profiles; [
boot.systemd-boot
networking.wireless
hardware.sound
hardware.nvidia
# peripherals.printing
]);
];
};
system.stateVersion = "21.05";