commit | 5b2c03820436e9330bb4684c0af85fe72be8675d | [log] [tgz] |
---|---|---|
author | Skyler Grey <skyler3665@gmail.com> | Mon May 29 11:09:05 2023 +0200 |
committer | Skyler Grey <skyler3665@gmail.com> | Tue Jun 06 23:46:51 2023 +0200 |
tree | 25730ced48a0edd2ea1e34d8f0f8de611545b911 | |
parent | b3516c2fa7d5c0367ddde969833daa9705e5ca25 [diff] [blame] |
Add a script for root to easily mount mongodb and force a static ip
diff --git a/modules/static-ip.nix b/modules/static-ip.nix new file mode 100644 index 0000000..d577c96 --- /dev/null +++ b/modules/static-ip.nix
@@ -0,0 +1,9 @@ +{ + networking.useDHCP = true; + networking.dhcpcd.extraConfig = '' + interface enp5s0 + static ip_address=192.168.185.178/16 + static routers=192.168.0.1 + static domain_name_servers=127.0.0.1 + ''; +}