-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
116 additions
and
35 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
_: interface: { | ||
networkConfig.DHCP = "yes"; | ||
matchConfig.Name = interface; | ||
routes = [ | ||
{ | ||
Destination = "10.0.0.0/8"; | ||
Gateway = "_dhcp4"; | ||
} | ||
{ | ||
Destination = "172.16.0.0/12"; | ||
Gateway = "_dhcp4"; | ||
} | ||
{ | ||
Destination = "192.168.0.0/16"; | ||
Gateway = "_dhcp4"; | ||
} | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ LT, lib, ... }: | ||
{ | ||
imports = [ | ||
../../nixos/server.nix | ||
|
||
./hardware-configuration.nix | ||
]; | ||
|
||
systemd.network.networks.eth0 = LT.cloudLanNetworking "eth0"; | ||
|
||
services.userborn.enable = lib.mkForce false; | ||
|
||
services."route-chain" = { | ||
enable = true; | ||
routes = [ "172.22.76.97/29" ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Do not modify this file! It was generated by ‘nixos-generate-config’ | ||
# and may be overwritten by future invocations. Please make changes | ||
# to /etc/nixos/configuration.nix instead. | ||
_: { | ||
imports = [ | ||
../../nixos/hardware/azure.nix | ||
]; | ||
|
||
boot.loader.grub = { | ||
efiSupport = true; | ||
efiInstallAsRemovable = true; | ||
device = "nodev"; | ||
}; | ||
|
||
fileSystems."/nix" = { | ||
device = "/dev/sda3"; | ||
fsType = "btrfs"; | ||
options = [ | ||
"compress-force=zstd" | ||
"nosuid" | ||
"nodev" | ||
]; | ||
}; | ||
|
||
fileSystems."/boot" = { | ||
device = "/dev/sda2"; | ||
fsType = "vfat"; | ||
options = [ | ||
"fmask=0077" | ||
"dmask=0077" | ||
]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ tags, geo, ... }: | ||
{ | ||
index = 6; | ||
tags = with tags; [ | ||
server | ||
]; | ||
city = geo.cities."CN Hong Kong"; | ||
hostname = "20.255.249.106"; | ||
ssh = { | ||
rsa = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCqZrqspTSB5vmIthx5sFbBHb6enkA2LV/g8BTzRpL0g/ACOQpB9KgTKR/wcbckg+ghhFesgpUf0z6eUmOgh9zx96O+Xi0gc7OiWYxgm7riI12liGRC+3k0O1zhl+9QKzApVW/lGNrc7AfKGB2bZn7sZG0sAwT9v2e+0E3Ze7YOQF103v4bEvpmfKW79fK9+Qezt0QWeU+HPHV3CGyAVhS4zxfeWACLk1mvkSgwO7Zbza9p9ZyARwlGd4dP5bkxsViSj2WWNWixCv9Y7nHhNoFo9+xR2bN7ScdDAZz81E6ZLHbVkPC7omUsX6Q+w6qzwUHyxKeKi87LCjB+M27g2+KnlFRe1qJM6X2SggxeL8RE7tgXJCUD8bVBJAaPKu3Yv5VitLDZl/Kls5OU77xnoU1HavyMlyocq9JiYbjDWL3v3DqgkDXFPS05H9FK53lhuwZDcnkhk6L9XkZEB6uYb4EZQpWjeKPjLYUcSZO3VcT66sQYaF1HGgadx5CxHuX9x8POk5ZIDoAyOPmh12dWQSL67lDUelu0i9JgnV8v7McllG4TxaSa+uMsrdwfxfML+F9gmYmfNHNztII0R2kNYm4Wul8vLrg3aIzgS13MZp2yOc0kEX1LaqhKZ5MnER+tQmivyyWzmilK3+kUCiFvwlzKInl4NPI34wLzLf2h+hSkkQ=="; | ||
ed25519 = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGqbBvVUqmS5ffYSF/8nLG3M/RCYGm4Ai3JLhxLmQvut"; | ||
}; | ||
public = { | ||
IPv4 = "20.255.249.106"; | ||
}; | ||
dn42 = { | ||
IPv4 = "172.22.76.116"; | ||
region = 52; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ modulesPath, ... }: | ||
{ | ||
imports = [ | ||
(modulesPath + "/virtualisation/azure-agent.nix") | ||
]; | ||
|
||
virtualisation.azure.agent.enable = true; | ||
|
||
boot.kernelParams = [ | ||
"console=ttyS0" | ||
"earlyprintk=ttyS0" | ||
"rootdelay=300" | ||
]; | ||
boot.initrd.kernelModules = [ | ||
"hv_vmbus" | ||
"hv_netvsc" | ||
"hv_utils" | ||
"hv_storvsc" | ||
]; | ||
} |