refactor: move imports to lib.flattenListSet
This commit is contained in:
parent
df4a46b8a6
commit
9f44af0bde
1 changed files with 7 additions and 6 deletions
|
@ -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";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue