static net

This commit is contained in:
2025-04-08 21:25:08 -04:00
parent a1a5ee1f8f
commit b254e8b107
2 changed files with 51 additions and 32 deletions

View File

@@ -1,10 +1,11 @@
{ namespace, config, pkgs, lib, ... }:
{ namespace, config, pkgs, ... }:
let
inherit (lib.${namespace}) enabled;
cfg = config.${namespace}.user;
in
{
time.timeZone = "America/New_York";
system.stateVersion = "24.11";
reichard = {
system = {
boot = {
@@ -15,7 +16,15 @@ in
enable = true;
diskPath = "/dev/xvda";
};
networking = enabled; # TODO - Network Config
networking = {
enable = true;
useStatic = {
interface = "enX0";
address = "10.0.50.130";
defaultGateway = "10.0.50.254";
nameservers = [ "10.0.50.254" ];
};
};
};
services = {
@@ -42,24 +51,10 @@ in
};
};
networking = {
defaultGateway = {
address = "10.0.50.254";
interface = "enX0";
};
interfaces.enX0.ipv4.addresses = [{
address = "10.0.50.130";
prefixLength = 24;
}];
};
# System Packages
environment.systemPackages = with pkgs; [
htop
tmux
vim
];
time.timeZone = "America/New_York";
system.stateVersion = "24.11";
}