diff options
author | Karel Kočí <cynerd@email.cz> | 2024-04-01 12:14:45 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2024-04-01 12:14:45 +0200 |
commit | a9738a94e009610163e3c49e9686c12051917af7 (patch) | |
tree | b5ec298b6b9892ee59bca9d116646d78a7ea29be /nixos/configurations/dean.nix | |
parent | e84e6dcf117080eaf7658b25fb20a9dc3b5d1cfe (diff) | |
download | nixos-personal-a9738a94e009610163e3c49e9686c12051917af7.tar.gz nixos-personal-a9738a94e009610163e3c49e9686c12051917af7.tar.bz2 nixos-personal-a9738a94e009610163e3c49e9686c12051917af7.zip |
nixos: few more fixes
Diffstat (limited to 'nixos/configurations/dean.nix')
-rw-r--r-- | nixos/configurations/dean.nix | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/nixos/configurations/dean.nix b/nixos/configurations/dean.nix index 44feaea..c903794 100644 --- a/nixos/configurations/dean.nix +++ b/nixos/configurations/dean.nix @@ -1,4 +1,10 @@ -{pkgs, ...}: { +{ + lib, + pkgs, + ... +}: let + inherit (lib) mkForce; +in { turris.board = "mox"; deploy.enable = true; @@ -10,6 +16,11 @@ networking = { useNetworkd = true; useDHCP = false; + nat = { + enable = true; + externalInterface = "brlan"; + internalInterfaces = ["wg"]; + }; }; systemd.network = { netdevs."brlab".netdevConfig = { @@ -28,6 +39,7 @@ matchConfig.Name = "lan* end0"; networkConfig.Bridge = "brlan"; }; + "wg".networkConfig.IPForward = mkForce "yes"; }; # TODO investigate why it doesn't work wait-online.enable = false; @@ -37,7 +49,4 @@ #openocd tio ]; - - # TODO: ubootTools build is broken! - firmware.environment.enable = false; } |