add compute1-vm

This commit is contained in:
müde 2026-09-12 20:53:03 +02:00
commit d6cf6c5a41
6 changed files with 74 additions and 8 deletions

View file

@ -15,6 +15,9 @@ in
# system = "aarch64-linux"; # system = "aarch64-linux";
# nixosSystem = nixos-raspberrypi.lib.nixosInstaller; # nixosSystem = nixos-raspberrypi.lib.nixosInstaller;
# }; # };
compute1-vm = {
system = "x86_64-linux";
};
epimetheus = { epimetheus = {
system = "aarch64-linux"; system = "aarch64-linux";
}; };

52
flake.lock generated
View file

@ -373,11 +373,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1789162365, "lastModified": 1789229958,
"narHash": "sha256-0EXUjmLSay0sjS0SmXD5DMPpxvMRyaN0rkadKLgVG+8=", "narHash": "sha256-/RQjL9iTDNXB5x/eARV3D50q1BSV4I6dUO1cCyjdpYU=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "1fb9e068eef964f5188c404aeb395bce0eeb5556", "rev": "2a02c76ad53ee7e324628335bedbb7a71e7abc42",
"revCount": 4459, "revCount": 4497,
"type": "git", "type": "git",
"url": "https://forge.darkest.space/hyperhive/hyperhive.git" "url": "https://forge.darkest.space/hyperhive/hyperhive.git"
}, },
@ -436,6 +436,27 @@
"type": "github" "type": "github"
} }
}, },
"microvm": {
"inputs": {
"nixpkgs": [
"nixpkgs"
],
"spectrum": "spectrum"
},
"locked": {
"lastModified": 1789237993,
"narHash": "sha256-RAdzfDzSYSN9l51H+XrbEwWHQ6rq/zqCvQJXtMXmBEM=",
"owner": "astro",
"repo": "microvm.nix",
"rev": "c344219b88c8f630efff501a53ce4ef54ad73f76",
"type": "github"
},
"original": {
"owner": "astro",
"repo": "microvm.nix",
"type": "github"
}
},
"niri": { "niri": {
"inputs": { "inputs": {
"niri-stable": "niri-stable", "niri-stable": "niri-stable",
@ -742,6 +763,7 @@
"hyperhive": "hyperhive", "hyperhive": "hyperhive",
"hyperhive-website": "hyperhive-website", "hyperhive-website": "hyperhive-website",
"lanzaboote": "lanzaboote", "lanzaboote": "lanzaboote",
"microvm": "microvm",
"niri": "niri", "niri": "niri",
"nix-vscode-extensions": "nix-vscode-extensions", "nix-vscode-extensions": "nix-vscode-extensions",
"nixos-generators": "nixos-generators", "nixos-generators": "nixos-generators",
@ -846,6 +868,22 @@
"url": "https://forge.darkest.space/servicepoint/servicepoint-tanks.git" "url": "https://forge.darkest.space/servicepoint/servicepoint-tanks.git"
} }
}, },
"spectrum": {
"flake": false,
"locked": {
"lastModified": 1786032750,
"narHash": "sha256-+Ba/kIn5BjvV7PN8bWOo7RoqgTY/Yv2M7qeMf3wS2Ag=",
"ref": "refs/heads/main",
"rev": "77d2389874bb092b8dbf05ecc5b1030372e80e98",
"revCount": 1417,
"type": "git",
"url": "https://spectrum-os.org/git/spectrum"
},
"original": {
"type": "git",
"url": "https://spectrum-os.org/git/spectrum"
}
},
"stylix": { "stylix": {
"inputs": { "inputs": {
"base16": "base16", "base16": "base16",
@ -1019,11 +1057,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1789158872, "lastModified": 1789232649,
"narHash": "sha256-t+pbC+A3e3T5+WXxHu2WjUxTGUXPLXD7DL5cwHy+1+0=", "narHash": "sha256-0IP5Zluyh3pjvlzFAnCJ+dOXESxvVxB5vCIYWtVx+AE=",
"owner": "vibec0re", "owner": "vibec0re",
"repo": "trollshell", "repo": "trollshell",
"rev": "bac323829673c48ad529e22f56386804fc9cef35", "rev": "9eab2211b4aed1b7e601a23363baf2e8ad4350d4",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -28,6 +28,10 @@
url = "github:nix-community/lanzaboote/v1.0.0"; url = "github:nix-community/lanzaboote/v1.0.0";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
microvm = {
url = "github:astro/microvm.nix";
inputs.nixpkgs.follows = "nixpkgs";
};
niri = { niri = {
url = "github:sodiboo/niri-flake"; url = "github:sodiboo/niri-flake";
inputs = { inputs = {

View file

@ -59,6 +59,10 @@
HostName = "hyperforge.darkest.space"; HostName = "hyperforge.darkest.space";
User = "root"; User = "root";
}; };
"compute1.netcup.dfdx.de" = {
User = "mara";
Port = 17562;
};
}; };
}; };
} }

View file

@ -0,0 +1,18 @@
{
microvm,
lib,
...
}:
{
imports = [ microvm.nixosModules.microvm ];
config = {
microvm.hypervisor = "qemu";
# microvm boots the kernel directly; there is no ESP to install a bootloader onto
boot.loader.systemd-boot.enable = lib.mkForce false;
# store optimisation is unsafe on microvm's virtiofs/block-backed store
nix.optimise.automatic = lib.mkForce false;
};
}

View file

@ -13,4 +13,3 @@
]; ];
}; };
} }