diff --git a/flake.nix b/flake.nix index c7188f67..ee47600c 100644 --- a/flake.nix +++ b/flake.nix @@ -909,7 +909,7 @@ leoncloud = nixosSystem' { modules = [ - self.nixosModules.microvm + self.nixosModules.cluster-options ./hosts/leoncloud ]; }; diff --git a/hosts/leoncloud/default.nix b/hosts/leoncloud/default.nix index c4375c8a..57165182 100644 --- a/hosts/leoncloud/default.nix +++ b/hosts/leoncloud/default.nix @@ -1,24 +1,14 @@ { zentralwerk, config, lib, pkgs, ... }: { - microvm = { - mem = 4024; - writableStoreOverlay = "/nix/.rw-store"; - volumes = [ { - image = "nix-store-overlay.img"; - mountPoint = config.microvm.writableStoreOverlay; - size = 32 * 1024; - } ]; + deployment = { + persistedShares = [ "/etc" "/home" "/var" ]; + storage = "big"; + mem = 2048; }; nix.settings.auto-optimise-store = lib.mkForce false; - c3d2.deployment = { - server = "server9"; - mounts = [ "etc" "home" "var" ]; - autoNetSetup = true; - }; - networking = { hostName = "leoncloud"; firewall.enable = true;