Compare commits

..

No commits in common. "557aa480ee2f515e4423c59a80561144df91ff07" and "4a876f27d33ad81fce89f4faa83b9df18cd9f136" have entirely different histories.

3 changed files with 63 additions and 24 deletions

View File

@ -24,7 +24,7 @@ in
networking = { networking = {
hostName = "${name}"; hostName = "${name}";
firewall = { firewall = {
enable = true; enable = true;
allowedUDPPorts = [ ]; allowedUDPPorts = [ ];
allowedTCPPorts = [ ]; allowedTCPPorts = [ ];
@ -78,7 +78,6 @@ in
directories = [ directories = [
"/var/lib/nixos" "/var/lib/nixos"
"/var/log" "/var/log"
"/var/lib/gitea-runner"
]; ];
files = [ files = [

View File

@ -3,6 +3,42 @@ let
name = "gitea-runner"; name = "gitea-runner";
in in
{ {
systemd.network = {
enable = true;
netdevs."10-microvm".netdevConfig = {
Kind = "bridge";
Name = "microvm";
};
networks = {
"10-microvm" = {
matchConfig.Name = "microvm";
networkConfig = {
DHCP = "yes";
IPv6AcceptRA = true;
};
addresses = [ {
addressConfig.Address = "10.0.0.1/24";
} {
addressConfig.Address = "fd12:3456:789a::1/64";
} ];
ipv6Prefixes = [ {
ipv6PrefixConfig.Prefix = "fd12:3456:789a::/64";
} ];
};
"11-microvm" = {
matchConfig.Name = "vm-*";
networkConfig.Bridge = "microvm";
};
};
};
networking = {
nat = {
enable = true;
enableIPv6 = true;
externalInterface = "ens18";
internalInterfaces = [ "microvm" ];
};
};
microvm = { microvm = {
autostart = [ autostart = [
@ -81,7 +117,6 @@ in
directories = [ directories = [
"/var/lib/nixos" "/var/lib/nixos"
"/var/log" "/var/log"
"/var/lib/gitea-runner"
]; ];
files = [ files = [
@ -90,16 +125,20 @@ in
}; };
microvm = { microvm = {
hypervisor = "qemu"; hypervisor = "cloud-hypervisor";
vcpu = 4; vcpu = 4;
mem = 4096; mem = 4096;
balloonMem = 4096; balloonMem = 4096;
#kernel = pkgs.linuxKernel.packages.linux_latest; #kernel = pkgs.linuxKernel.packages.linux_latest;
interfaces = [ interfaces = [
{ {
type = "user"; type = "macvtap";
id = "vm-${name}"; id = "vm-${name}";
mac = "04:00:00:00:00:01"; mac = "04:00:00:00:00:01";
macvtap = {
link = "ens18";
mode = "bridge";
};
} ]; } ];
shares = [{ shares = [{
source = "/nix/store"; source = "/nix/store";

View File

@ -1,21 +1,22 @@
age-encryption.org/v1 age-encryption.org/v1
-> ssh-ed25519 URAPyw KfgM30iObaBFnzr/qt52XYcaoL7gtG6uV3Y6WYzY8gs -> ssh-ed25519 URAPyw voAi15csDCmcVbZP+WErs2/+vL3yVvRZa0SQW7g34B4
AK/uaa683L/ryApa+007fq4A1qVSVWxDd+LoeBHt0nQ WgGNr9IwKDGWqL+AeoVUc8jTkATmvRQ08s3neohc5fc
-> ssh-rsa VtjGpQ -> ssh-rsa VtjGpQ
JqNH1SH7MBFwibYKe+VQSuj9ceHyLMo0yWOk4KOLfoMXTBfRFYsqeS+G9p1sTCiJ j/9J3kb9EdqUuDaNgFjyi6dsoU5W0a8QNRXRvmVgCnxBTWuFsh/Un+Eyo19bXSgu
I42DQHCustbQ77vElUAYt87v+s+0esK9z0HqSxuYeV2AovQ0FcV7AIrwA+m+eypv JIPe/WtlQLwLVNiDhDcDAg7yVo/DSj81pqEQLYJz7X41NwjQMHcmn0W6ylrr1vl6
KObVeF+c0PSLaG2HMXSwd3MTXjH8PAwxDB+f+nF2cTYm7oaz5YpNjsMjjcoHxEVz 7nC85aPrjSRnMsaHNox5ODYH3YdvLbX/yfVLZo1IydqyA+Aq6KOYd3kQ7lDaejhl
GOkHWMujX1zxqdp0o0TZC4YhQa4BqF5MXX4IIVtSGMnzShCzubH47bWgLqTxFlnn 7O1ynmEqOdTaXpV3MJTh98YFczFwm5hg+0OOrT5souCN61V/ny0qWgE6Y6KQh3P7
bcSHFxldOaPiu/GUV/ygnSGassQJ6naWqu7DlqcdT+NWxARvCRn2Cx786Avi3LHY WHvgwKX9j5qjMHF6j1nzsoJV1KFlaxCHPEyA3tsquB48JxSV7iC35gw+doUayKMa
vmZFUwdtNkmLNL0jDkm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Ju1jbM6rs haQG2+q3uYzgokcjB19hRgTwMn2F4EZJbYvcUqoHtx8
--- KL1itlvz/yBCLl2CXz3bDu5fSQbT/3XxP2f9hufzSLA --- Nuj7KymDL26sjM6Yse24I7b5TemyuyNMtWcdYc0TWAM
n\ô!èKã=WúÅ·Y,Å&f ·%þoÚ YŒúPÆYÆsàê_ÌsCbú,Oùènl…©¯W?¿¼¾—1ášS ÄV4­ÈJz ˝ŠöŘM˝űßćâžň0x3VŽ<56>ݯ׮ąÝ%ó‘
?ł–JĹFonČaŚőćM˛™˙§ĂČAŹ}áý*!©ÎۧwvŚž @a꼨z