From e5e5cfbf33008ca3260cd4f2dd78986694dfb027 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 17 Mar 2015 23:25:33 +0100 Subject: Add common.nix and use it for all machines. We now have "pkgs.labernix" available for every machine. Also, we're deactivating the packet filter by default, so we can use it whenever we _really_ need it. Signed-off-by: aszlig --- machines/heinrich.nix | 2 +- machines/labtop.nix | 2 ++ machines/mailserver.nix | 6 +++++- 3 files changed, 8 insertions(+), 2 deletions(-) (limited to 'machines') diff --git a/machines/heinrich.nix b/machines/heinrich.nix index 3eaddea5..8ce69950 100644 --- a/machines/heinrich.nix +++ b/machines/heinrich.nix @@ -43,7 +43,7 @@ let }; in { - imports = mapAttrsToList mkRouteConfig routes; + imports = singleton ../common.nix ++ mapAttrsToList mkRouteConfig routes; options.heinrich = { internalInterface = mkOption { diff --git a/machines/labtop.nix b/machines/labtop.nix index a66ceea3..bf376ba5 100644 --- a/machines/labtop.nix +++ b/machines/labtop.nix @@ -24,6 +24,8 @@ let }; in { + imports = [ ../common.nix ]; + i18n = { consoleFont = "lat9w-16"; consoleKeyMap = "us"; diff --git a/machines/mailserver.nix b/machines/mailserver.nix index 30809d5b..86f6edac 100644 --- a/machines/mailserver.nix +++ b/machines/mailserver.nix @@ -35,7 +35,11 @@ ''}"; in { - imports = [ ../modules/postfix/restrictions.nix ]; + imports = [ + ../common.nix + ../modules/postfix/restrictions.nix # XXX: Refactor and remove! + ]; + services.spamassassin.enable = true; services.postfix.enable = true; -- cgit 1.4.1