formatted all files with nixfmt, added env variable to hold secrets

This commit is contained in:
pagedmov
2024-11-09 16:20:27 -05:00
parent d38da56ba2
commit 2a1ba18c09
93 changed files with 948 additions and 1254 deletions

View File

@@ -1,16 +1,16 @@
{host, lib, config, ...}:
{
{ host, lib, config, ... }: {
options = {
movOpts.hardwareCfg.networkModule.enable = lib.mkEnableOption "enables network configuration";
movOpts.hardwareCfg.networkModule.enable =
lib.mkEnableOption "enables network configuration";
};
config = lib.mkIf config.movOpts.hardwareCfg.networkModule.enable {
networking = {
networkmanager.enable = true;
hostName = "${host}";
hosts = {
"192.168.1.200" = ["xenon"];
"192.168.1.201" = ["oganesson"];
"192.168.1.202" = ["mercury"];
"192.168.1.200" = [ "xenon" ];
"192.168.1.201" = [ "oganesson" ];
"192.168.1.202" = [ "mercury" ];
};
firewall = {
enable = true;