migrating hades hosts to this repo

This commit is contained in:
Vivian 2022-09-10 15:10:01 +02:00
parent 6ae076296e
commit 6878e2b786
15 changed files with 3672 additions and 18 deletions

View file

@ -1,12 +1,13 @@
{ config, pkgs, hosts, ... }:
let
inherit (builtins) filter hasAttr;
hostToDhcp = { hostname, mac, ip, ... }: {
ethernetAddress = mac;
hostName = hostname;
ipAddress = ip;
};
localDomain = config.networking.domain;
hosts' = builtins.filter (builtins.hasAttr "ip") hosts.${localDomain};
hosts' = filter (h: hasAttr "ip" h && hasAttr "mac" h) hosts.${localDomain};
in {
imports = [ ];