25 lines
682 B
Nix
25 lines
682 B
Nix
|
{ config, pkgs, lib, ... }:
|
||
|
with lib;
|
||
|
|
||
|
{
|
||
|
imports =
|
||
|
[
|
||
|
./hardware-configuration.nix
|
||
|
];
|
||
|
boot.loader.systemd-boot.enable = true;
|
||
|
boot.loader.efi.canTouchEfiVariables = true;
|
||
|
|
||
|
networking.hostName = "radius";
|
||
|
networking.useDHCP = false;
|
||
|
networking.interfaces.ens18.ipv4.addresses = [
|
||
|
{address = "10.42.10.5"; prefixLength = 24; }
|
||
|
];
|
||
|
networking.interfaces.ens18.ipv6.addresses = [
|
||
|
{address = "2a01:4f8:1c0c:8221::5"; prefixLength = 64; }
|
||
|
];
|
||
|
networking.defaultGateway = { address = "10.42.10.1"; interface = "ens18"; };
|
||
|
networking.defaultGateway6 = { address = "2a01:4f8:1c0c:8221::1"; interface = "ens18"; };
|
||
|
|
||
|
system.stateVersion = "22.05";
|
||
|
}
|