We transitioned from Rocky to NIX

This commit is contained in:
2026-04-25 02:20:35 +02:00
parent b944652549
commit fcb4de2176
2 changed files with 41 additions and 34 deletions
+12 -11
View File
@@ -1,3 +1,4 @@
{ ... }:
{
imports = [
./hardware-configuration.nix
@@ -5,19 +6,19 @@
];
networking = {
hostName = "cyper-proxy";
useNetworkd = true;
useDHCP = false;
firewall.enable = true;
hostName = "cyper-proxy";
useDHCP = false;
interfaces.ens3 = {
ipv4.addresses = [
{ address = "178.254.8.35"; prefixLength = 23; }
];
};
defaultGateway = "178.254.8.1";
nameservers = [ "178.254.16.151" "178.254.16.141" ];
systemd.network = {
enable = true;
networks."10-eth" = {
matchConfig.Name = "en* eth*"; # catches both naming schemes
networkConfig.DHCP = "yes";
};
};
firewall.allowedTCPPorts = [ 80 443 ];
};
system.stateVersion = "26.05";
}