feat: enable IPv6 networking
This commit is contained in:
parent
d17dfebff8
commit
c751c047f4
2 changed files with 15 additions and 2 deletions
|
|
@ -5,6 +5,7 @@ in
|
|||
{ lib, ... }: {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./networking.nix
|
||||
./audit.nix
|
||||
|
||||
./openssh.nix
|
||||
|
|
@ -36,9 +37,7 @@ in
|
|||
|
||||
boot.tmp.cleanOnBoot = true;
|
||||
zramSwap.enable = true;
|
||||
networking.hostName = "quasar";
|
||||
users.users.root.initialPassword = "asunarovow";
|
||||
networking.domain = "";
|
||||
nix.allowedUsers = [ "@wheel" "root" ];
|
||||
console.keyMap = "us";
|
||||
system.stateVersion = "23.11";
|
||||
|
|
|
|||
14
networking.nix
Normal file
14
networking.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
networking.hostName = "quasar";
|
||||
networking.domain = "";
|
||||
networking.interfaces.ens18 = {
|
||||
ipv6.addresses = [{
|
||||
address = "2a02:c206:2209:5178:0000:0000:0000:0001";
|
||||
prefixLength = 64;
|
||||
}];
|
||||
};
|
||||
networking.defaultGateway6 = {
|
||||
address = "fe80::1";
|
||||
interface = "ens18";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue