Combine microvm-defaults.nix to microvm.nix

This commit is contained in:
Sandro - 2023-05-19 21:05:00 +02:00
parent 20a3ce5ad8
commit 04350a3faf
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
3 changed files with 6 additions and 23 deletions

View File

@ -381,7 +381,6 @@
gnunet = nixosSystem' {
modules = [
self.nixosModules.cluster-options
self.nixosModules.microvm-defaults
./hosts/gnunet
];
};
@ -429,7 +428,6 @@
leon = nixosSystem' {
modules = [
self.nixosModules.cluster-options
self.nixosModules.microvm-defaults
./hosts/leon
];
};
@ -437,7 +435,6 @@
leoncloud = nixosSystem' {
modules = [
self.nixosModules.cluster-options
self.nixosModules.microvm-defaults
./hosts/leoncloud
];
};
@ -500,7 +497,6 @@
}
./hosts/mucbot
self.nixosModules.cluster-options
self.nixosModules.microvm-defaults
];
};
@ -544,7 +540,6 @@
owncast = nixosSystem' {
modules = [
self.nixosModules.cluster-options
self.nixosModules.microvm-defaults
./hosts/owncast
];
};
@ -552,7 +547,6 @@
oxigraph = nixosSystem' {
modules = [
self.nixosModules.cluster-options
self.nixosModules.microvm-defaults
./hosts/oxigraph
];
};
@ -650,7 +644,6 @@
sdrweb = nixosSystem' {
modules = [
self.nixosModules.cluster-options
self.nixosModules.microvm-defaults
{
# TODO: migrate to sops
nixpkgs.overlays = [ secrets.overlays.mucbot ];
@ -715,7 +708,6 @@
sshlog = nixosSystem' {
modules = [
self.nixosModules.cluster-options
self.nixosModules.microvm-defaults
sshlogd.nixosModule
./hosts/sshlog
];
@ -724,7 +716,6 @@
stream = nixosSystem' {
modules = [
self.nixosModules.cluster-options
self.nixosModules.microvm-defaults
./hosts/stream
];
};
@ -740,7 +731,6 @@
tmppleroma = nixosSystem' {
modules = [
self.nixosModules.cluster-options
self.nixosModules.microvm-defaults
sshlogd.nixosModule
./hosts/tmppleroma
];
@ -765,7 +755,6 @@
cluster = ./modules/cluster;
cluster-options = deployment.nixosModules.deployment-options;
cluster-network = ./modules/cluster/network.nix;
microvm-defaults = ./modules/microvm-defaults.nix;
microvm.imports = [
microvm.nixosModules.microvm
./modules/microvm.nix

View File

@ -1,12 +0,0 @@
# No MicroVM settings but some defaults that enable evaulating NixOS
# configurations that are destined to be used on Skyflake
{ lib, ... }:
{
fileSystems."/" = lib.mkDefault {
fsType = "tmpfs";
};
boot.loader.grub.enable = false;
}

View File

@ -69,6 +69,8 @@ in
};
config = {
boot.loader.grub.enable = false;
# autoupdates do not make sense inside MicroVMs with read-only /nix/store
c3d2.autoUpdate = false;
@ -85,6 +87,10 @@ in
];
};
fileSystems."/" = lib.mkDefault {
fsType = "tmpfs";
};
hardware.enableRedistributableFirmware = false;
microvm = {