From 0f238f912d8bcddd14c1f61879d0353983f9b1a9 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Sat, 20 Aug 2022 21:08:31 +0200 Subject: [PATCH] add /etc/hosts to all servers --- nixos/system/all/defaults.nix | 7 +++++++ nixos/system/all/packages.nix | 1 + 2 files changed, 8 insertions(+) diff --git a/nixos/system/all/defaults.nix b/nixos/system/all/defaults.nix index 688d9a3..32020f2 100644 --- a/nixos/system/all/defaults.nix +++ b/nixos/system/all/defaults.nix @@ -49,4 +49,11 @@ # ----------------------------- programs.vim.defaultEditor = true; + # extra hosts + # /etc/hosts + networking.extraHosts = '' + ${config.module.cluster.services.tinc.private.hosts.robi.tincIp} transmission.robi.private + ''; + + } diff --git a/nixos/system/all/packages.nix b/nixos/system/all/packages.nix index 8138bf8..dd8a429 100644 --- a/nixos/system/all/packages.nix +++ b/nixos/system/all/packages.nix @@ -55,6 +55,7 @@ in # to browse logs better lnav + nix-tree nixos-option storepath