diff --git a/modules/common/default.nix b/modules/common/default.nix index 159bd3a965..2db35980d6 100644 --- a/modules/common/default.nix +++ b/modules/common/default.nix @@ -17,5 +17,6 @@ ./version ./virtualization/docker.nix ./systemd + ./networking ]; } diff --git a/modules/common/networking/default.nix b/modules/common/networking/default.nix new file mode 100644 index 0000000000..1aecb04ce2 --- /dev/null +++ b/modules/common/networking/default.nix @@ -0,0 +1,7 @@ +# Copyright 2022-2024 TII (SSRC) and the Ghaf contributors +# SPDX-License-Identifier: Apache-2.0 +{ + imports = [ + ./hosts.nix + ]; +} diff --git a/modules/common/networking/hosts.nix b/modules/common/networking/hosts.nix new file mode 100644 index 0000000000..c1810689fb --- /dev/null +++ b/modules/common/networking/hosts.nix @@ -0,0 +1,16 @@ +# Copyright 2022-2024 TII (SSRC) and the Ghaf contributors +# SPDX-License-Identifier: Apache-2.0 +{...): { + environment.etc.hosts = { + text = '' + 192.168.100.1 net-vm + 192.168.100.2 log-vm + 192.168.100.3 gala-vm + 192.168.100.4 chromium-vm + 192.168.100.5 zathura-vm + 192.168.100.6 element-vm + 192.168.100.7 gui-vm + ''; + mode = "0440"; + }; +}