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 ];