Fix: imports

This commit is contained in:
DuN0z 2025-10-09 17:40:43 +02:00
parent 36d368063a
commit e3c3d5ee8b
7 changed files with 23 additions and 18 deletions

View file

@ -5,7 +5,9 @@
config,
pkgs,
...
}: {
}: let
globals = import ../../config/globals.nix ;
in {
nix.settings.experimental-features = ["nix-command" "flakes"];
imports = [
# Include the results of the hardware scan.
@ -55,16 +57,16 @@
useDHCP = false;
ipv4.addresses = [
{
address = "192.168.0.3";
address = globals.network.terre-neuvas.ip;
prefixLength = 24;
}
];
};
defaultGateway = {
interface = "br0";
address = "192.168.0.254";
address = globals.network.gateway;
};
nameservers = ["192.168.0.254" "1.1.1.1"];
nameservers = [ globals.network.gateway "1.1.1.1"];
bridges.br0.interfaces = ["eno1"];
};
systemd.network = {