migrating hades hosts to this repo
This commit is contained in:
parent
6ae076296e
commit
6878e2b786
15 changed files with 3672 additions and 18 deletions
|
@ -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 = [ ];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue