Nix configurations for my personal machines (Linux & macOS)
1{delib, ...}:
2delib.module {
3 name = "hosts";
4
5 options = with delib; let
6 host = {
7 options = hostSubmoduleOptions;
8 };
9 in {
10 host = hostOption host;
11 hosts = hostsOption host;
12 };
13
14 myconfig.always = {myconfig, ...}: {
15 args.shared = {inherit (myconfig) host hosts;};
16 };
17
18 home.always = {myconfig, ...}: {
19 assertions = delib.hostNamesAssertions myconfig.hosts;
20 };
21}