fix host
This commit is contained in:
parent
ac505934cf
commit
2618e51072
2 changed files with 22 additions and 13 deletions
|
|
@ -15,20 +15,29 @@
|
||||||
documentation.nixos.enable = false;
|
documentation.nixos.enable = false;
|
||||||
documentation.man.enable = false;
|
documentation.man.enable = false;
|
||||||
boot.loader.grub.enable = true;
|
boot.loader.grub.enable = true;
|
||||||
boot.loader.grub.device = "/dev/sda";
|
boot.loader.grub.device = "/dev/vda";
|
||||||
boot.loader.systemd-boot.enable = false;
|
boot.loader.systemd-boot.enable = false;
|
||||||
|
|
||||||
#networking.interfaces."ens3" = {
|
networking.interfaces."ens3" = {
|
||||||
# ipv6 = {
|
ipv6 = {
|
||||||
# addresses = [
|
addresses = [
|
||||||
# {
|
{
|
||||||
# address = "2a03:4000:54:a98::1";
|
address = "2a00:6800:3:744::1";
|
||||||
# prefixLength = 64;
|
prefixLength = 64;
|
||||||
# }
|
}
|
||||||
# ];
|
];
|
||||||
# };
|
};
|
||||||
#};
|
ipv4 = {
|
||||||
#networking.defaultGateway6 = { address = "fe80::1"; interface = "enp0s3"; };
|
addresses = [
|
||||||
|
{
|
||||||
|
address = "195.90.211.163";
|
||||||
|
prefixLength = 22;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
networking.defaultGateway6 = { address = "2a00:6800:3::1"; interface = "ens3"; };
|
||||||
|
networking.defaultGateway = { address = "195.90.208.1"; interface = "ens3"; };
|
||||||
networking.nameservers = [ "1.1.1.1" "8.8.8.8" ];
|
networking.nameservers = [ "1.1.1.1" "8.8.8.8" ];
|
||||||
# networking.interfaces.eno1.useDHCP = true;
|
# networking.interfaces.eno1.useDHCP = true;
|
||||||
networking.hostId = "7c28236a";
|
networking.hostId = "7c28236a";
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ let
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [ "${modulesPath}/profiles/qemu-guest.nix" inputs.disko.nixosModules.disko ./disk-config.nix ];
|
imports = [ "${modulesPath}/profiles/qemu-guest.nix" inputs.disko.nixosModules.disko ./disk-config.nix ];
|
||||||
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/d2cb12f8-67e3-4725-86c3-0b5c7ebee3a6";
|
#boot.initrd.luks.devices."crypted".device = "/dev/vda2";
|
||||||
|
|
||||||
boot.initrd = {
|
boot.initrd = {
|
||||||
network = {
|
network = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue