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, ... }: { { suites, profiles, pkgs, lib, ... }: {
imports = suites.graphic imports = lib.flattenListSet {
++ [ ./hardware-configuration.nix ] suites = suites.graphic;
++ (with profiles; imports = [ ./hardware-configuration.nix ];
[ profiles = with profiles; [
boot.systemd-boot boot.systemd-boot
networking.wireless networking.wireless
hardware.sound hardware.sound
hardware.nvidia hardware.nvidia
# peripherals.printing # peripherals.printing
]); ];
};
system.stateVersion = "21.05"; system.stateVersion = "21.05";