From 61c24ad33a2899ba53f75ee6c4673dee72fa311d Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Fri, 16 Sep 2022 12:23:48 +0200 Subject: [PATCH] Add loki-test --- flake.nix | 4 ++++ modules/router/default.nix | 5 +++++ systems/loki-test/default.nix | 12 ++++++++++++ systems/raspi4/init_config.nix | 4 ---- 4 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 modules/router/default.nix create mode 100644 systems/loki-test/default.nix diff --git a/flake.nix b/flake.nix index 8ffa334..09959fd 100644 --- a/flake.nix +++ b/flake.nix @@ -60,6 +60,10 @@ hostname = "git"; inherit custom inputs; }; + loki-test = mkRaspi { + hostname = "loki-test"; + inherit custom inputs; + }; mail = mkComputer { hostname = "mail"; inherit custom inputs; diff --git a/modules/router/default.nix b/modules/router/default.nix new file mode 100644 index 0000000..335cf5b --- /dev/null +++ b/modules/router/default.nix @@ -0,0 +1,5 @@ +{ ... }: { + boot.kernel.sysctl = { + "net.ipv4.conf.all.forwarding" = true; + }; +} diff --git a/systems/loki-test/default.nix b/systems/loki-test/default.nix new file mode 100644 index 0000000..1e83107 --- /dev/null +++ b/systems/loki-test/default.nix @@ -0,0 +1,12 @@ +{ hostname, inputs, pkgs, ... }: +{ + imports = [ + (import "${inputs.self}/systems/raspi4" { + ip = "10.7.89.10"; + inherit hostname inputs pkgs; + }) + "${inputs.self}/modules/docker" + "${inputs.self}/modules/router" + "${inputs.self}/modules/tmux" + ]; +} diff --git a/systems/raspi4/init_config.nix b/systems/raspi4/init_config.nix index 2563975..c17eb59 100644 --- a/systems/raspi4/init_config.nix +++ b/systems/raspi4/init_config.nix @@ -10,10 +10,6 @@ }; }; - hardware.raspberry-pi."4".fkms-3d.enable = true; - hardware.raspberry-pi."4".audio.enable = true; - hardware.pulseaudio.enable = true; - environment.systemPackages = with pkgs; [ raspberrypi-eeprom ];