1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-28 10:37:44 +00:00

fix: configure nine interfaces properly

This commit is contained in:
RGBCube 2025-02-22 21:03:45 +03:00
parent 927e90f8e4
commit 146b138776

View file

@ -3,8 +3,6 @@ lib: lib.nixosSystem ({ config, keys, lib, ... }: let
in { in {
imports = collectNix ./. |> remove ./default.nix; imports = collectNix ./. |> remove ./default.nix;
networking.hostName = "nine";
secrets.id.file = ./id.age; secrets.id.file = ./id.age;
services.openssh.hostKeys = [{ services.openssh.hostKeys = [{
type = "ed25519"; type = "ed25519";
@ -37,16 +35,29 @@ in {
backup = {}; backup = {};
}; };
networking = { networking = let
interface = "enp4s0";
in {
hostName = "nine";
ipv4 = "152.53.2.105"; ipv4 = "152.53.2.105";
ipv6 = "2a0a:4cc0::12d9"; ipv6 = "2a0a:4cc0::12d9";
domain = "rgbcu.be"; domain = "rgbcu.be";
defaultGateway = "152.53.0.1"; defaultGateway = {
defaultGateway6 = "fe80::1"; inherit interface;
interfaces.enp4s0 = { address = "152.53.0.1";
};
defaultGateway6 = {
inherit interface;
address = "fe80::1";
};
interfaces.${interface} = {
ipv4.addresses = [{ ipv4.addresses = [{
address = config.networking.ipv4; address = config.networking.ipv4;
prefixLength = 22; prefixLength = 22;