|
{ config, ... }:
|
|
|
|
let
|
|
current-hostname = config.instance.hostname;
|
|
|
|
hardware-config = config.fudo.hosts.${current-hostname}.hardware-config;
|
|
|
|
import-hardware-config = hostname: {
|
|
imports = [ hardware-config ];
|
|
};
|
|
in {
|
|
imports =
|
|
[ (import-hardware-config current-hostname) ];
|
|
}
|