feat: enable IPv6 networking

This commit is contained in:
Khaïs COLIN 2024-08-31 19:15:00 +02:00
parent d17dfebff8
commit c751c047f4
2 changed files with 15 additions and 2 deletions

View file

@ -5,6 +5,7 @@ in
{ lib, ... }: { { lib, ... }: {
imports = [ imports = [
./hardware-configuration.nix ./hardware-configuration.nix
./networking.nix
./audit.nix ./audit.nix
./openssh.nix ./openssh.nix
@ -36,9 +37,7 @@ in
boot.tmp.cleanOnBoot = true; boot.tmp.cleanOnBoot = true;
zramSwap.enable = true; zramSwap.enable = true;
networking.hostName = "quasar";
users.users.root.initialPassword = "asunarovow"; users.users.root.initialPassword = "asunarovow";
networking.domain = "";
nix.allowedUsers = [ "@wheel" "root" ]; nix.allowedUsers = [ "@wheel" "root" ];
console.keyMap = "us"; console.keyMap = "us";
system.stateVersion = "23.11"; system.stateVersion = "23.11";

14
networking.nix Normal file
View 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";
};
}