From 62325d01d38a262ad6c1912e38661e1392a9fe24 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 11 Aug 2015 19:00:22 +0000 Subject: [PATCH] makefu: move more stuff into base.nix --- 1systems/pnp.nix | 7 ------- 1systems/tsp.nix | 14 +++----------- 2configs/base.nix | 4 ++++ 3 files changed, 7 insertions(+), 18 deletions(-) diff --git a/1systems/pnp.nix b/1systems/pnp.nix index bc4c679..6693dc0 100644 --- a/1systems/pnp.nix +++ b/1systems/pnp.nix @@ -33,11 +33,4 @@ ]; networking.firewall.allowedUDPPorts = [ 2003 ]; - networking.firewall.rejectPackets = true; - networking.firewall.allowPing = true; - -# $ nix-env -qaP | grep wget - environment.systemPackages = with pkgs; [ - jq - ]; } diff --git a/1systems/tsp.nix b/1systems/tsp.nix index da7466d..f19dbfe 100644 --- a/1systems/tsp.nix +++ b/1systems/tsp.nix @@ -1,7 +1,6 @@ -# Edit this configuration file to define what should be installed on -# your system. Help is available in the configuration.nix(5) man page -# and in the NixOS manual (accessible by running ‘nixos-help’). - +# +# +# { config, pkgs, ... }: { @@ -28,11 +27,4 @@ }; }; - networking.firewall.rejectPackets = true; - networking.firewall.allowPing = true; - - environment.systemPackages = with pkgs; [ - vim - jq - ]; } diff --git a/2configs/base.nix b/2configs/base.nix index 25d92d6..906c74f 100644 --- a/2configs/base.nix +++ b/2configs/base.nix @@ -50,6 +50,10 @@ with lib; users.mutableUsers = false; boot.tmpOnTmpfs = true; + + networking.firewall.rejectPackets = true; + networking.firewall.allowPing = true; + systemd.tmpfiles.rules = [ "d /tmp 1777 root root - -" ];