From 9a17c9918885dca24142701bfaa9e7efc104d63b Mon Sep 17 00:00:00 2001 From: Infinidoge Date: Thu, 23 Sep 2021 10:16:26 -0400 Subject: [PATCH] refactor: move Infini-SWIFT to lib.flattenListSet --- hosts/Infini-SWIFT/default.nix | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/hosts/Infini-SWIFT/default.nix b/hosts/Infini-SWIFT/default.nix index ac92a44..8ab2906 100644 --- a/hosts/Infini-SWIFT/default.nix +++ b/hosts/Infini-SWIFT/default.nix @@ -1,16 +1,17 @@ -{ suites, profiles, pkgs, ... }: { - imports = suites.graphic - ++ [ ./hardware-configuration.nix ] - ++ (with profiles; - [ - boot.grub +{ suites, profiles, pkgs, lib, ... }: { + imports = lib.flattenListSet { + suites = suites.graphic; + imports = [ ./hardware-configuration.nix ]; + profiles = with profiles; + [ + boot.grub - networking.wireless - hardware.sound - hardware.amdgpu - # peripherals.printing - ] - ); + networking.wireless + hardware.sound + hardware.amdgpu + # peripherals.printing + ]; + }; info.monitors = 1;