diff --git a/modules/beatific.nix b/modules/beatific.nix index 51cb30d..91e78ea 100644 --- a/modules/beatific.nix +++ b/modules/beatific.nix @@ -36,6 +36,7 @@ in { ssh = mkFlag "Default sshd settings"; nebula = mkFlag "Default beatific nebula settings"; tvb = mkFlag "Default tvb account"; + hosts = mkFlag "Default 10.22.20.* DNS host entries"; }; }; }; @@ -153,5 +154,35 @@ in { ]; }; }) + + (mkIf cfg.defaults.hosts { + # Create *.home host entries for all the beatific members + networking.hosts = { + "10.22.20.1" = [ + "empyrean.home" + ]; + "10.22.20.2" = [ + "catacomb.home" + ]; + "10.22.20.3" = [ + "palamas.home" + ]; + "10.22.20.4" = [ + "stagirite.home" + ]; + "10.22.20.5" = [ + "vagrant.home" + ]; + "10.22.20.6" = [ + "unfolder.home" + ]; + "10.22.20.7" = [ + "centroid.home" + ]; + "10.22.20.8" = [ + "backyard.home" + ]; + }; + }) ]; }