Move network configuration
This commit is contained in:
parent
5cf952800f
commit
92b6abdcca
|
@ -1,6 +1,7 @@
|
||||||
{ config, pkgs,... }: {
|
{ config, pkgs,... }: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
|
./network-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.cleanTmpDir = true;
|
boot.cleanTmpDir = true;
|
||||||
|
@ -11,16 +12,6 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
allowedTCPPorts = [ 113 2222 ];
|
allowedTCPPorts = [ 113 2222 ];
|
||||||
};
|
};
|
||||||
networking = {
|
|
||||||
interfaces.ens3.ipv6.addresses = [{
|
|
||||||
address = "2a01:4f8:c0c:2be9::1";
|
|
||||||
prefixLength = 64;
|
|
||||||
}];
|
|
||||||
defaultGateway6 = {
|
|
||||||
address = "fe80::1";
|
|
||||||
interface = "ens3";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in New Issue