Compare commits

...

2 Commits

Author SHA1 Message Date
557aa480ee
hosts: server: make runner persistent 2024-01-21 14:16:39 +01:00
853ee2a917
hosts: server: switch runner to user networking 2024-01-21 14:01:57 +01:00
3 changed files with 24 additions and 63 deletions

View File

@ -78,6 +78,7 @@ in
directories = [ directories = [
"/var/lib/nixos" "/var/lib/nixos"
"/var/log" "/var/log"
"/var/lib/gitea-runner"
]; ];
files = [ files = [

View File

@ -3,42 +3,6 @@ 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 = [
@ -117,6 +81,7 @@ in
directories = [ directories = [
"/var/lib/nixos" "/var/lib/nixos"
"/var/log" "/var/log"
"/var/lib/gitea-runner"
]; ];
files = [ files = [
@ -125,20 +90,16 @@ in
}; };
microvm = { microvm = {
hypervisor = "cloud-hypervisor"; hypervisor = "qemu";
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 = "macvtap"; type = "user";
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,22 +1,21 @@
age-encryption.org/v1 age-encryption.org/v1
-> ssh-ed25519 URAPyw voAi15csDCmcVbZP+WErs2/+vL3yVvRZa0SQW7g34B4 -> ssh-ed25519 URAPyw KfgM30iObaBFnzr/qt52XYcaoL7gtG6uV3Y6WYzY8gs
WgGNr9IwKDGWqL+AeoVUc8jTkATmvRQ08s3neohc5fc AK/uaa683L/ryApa+007fq4A1qVSVWxDd+LoeBHt0nQ
-> ssh-rsa VtjGpQ -> ssh-rsa VtjGpQ
j/9J3kb9EdqUuDaNgFjyi6dsoU5W0a8QNRXRvmVgCnxBTWuFsh/Un+Eyo19bXSgu JqNH1SH7MBFwibYKe+VQSuj9ceHyLMo0yWOk4KOLfoMXTBfRFYsqeS+G9p1sTCiJ
JIPe/WtlQLwLVNiDhDcDAg7yVo/DSj81pqEQLYJz7X41NwjQMHcmn0W6ylrr1vl6 I42DQHCustbQ77vElUAYt87v+s+0esK9z0HqSxuYeV2AovQ0FcV7AIrwA+m+eypv
7nC85aPrjSRnMsaHNox5ODYH3YdvLbX/yfVLZo1IydqyA+Aq6KOYd3kQ7lDaejhl KObVeF+c0PSLaG2HMXSwd3MTXjH8PAwxDB+f+nF2cTYm7oaz5YpNjsMjjcoHxEVz
7O1ynmEqOdTaXpV3MJTh98YFczFwm5hg+0OOrT5souCN61V/ny0qWgE6Y6KQh3P7 GOkHWMujX1zxqdp0o0TZC4YhQa4BqF5MXX4IIVtSGMnzShCzubH47bWgLqTxFlnn
WHvgwKX9j5qjMHF6j1nzsoJV1KFlaxCHPEyA3tsquB48JxSV7iC35gw+doUayKMa bcSHFxldOaPiu/GUV/ygnSGassQJ6naWqu7DlqcdT+NWxARvCRn2Cx786Avi3LHY
FuiVbYzCZuRhLZsyTEZiEIDIrAkM2kuQUpJZ8aBxtg70uGMPwjZ/xopHifNfrtFF vmZFUwdtNkmLNL0jDkmwxT8styRl5ZKJ4IwmAn86O2TcUrqt/FFJ7ph8U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