Skip to content

Commit

Permalink
run deadnix
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed Jun 8, 2023
1 parent 708f09d commit a90a571
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
7 changes: 1 addition & 6 deletions lib/runners/cloud-hypervisor.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
}:

let
inherit (pkgs) lib system;
inherit (pkgs) lib;
inherit (microvmConfig) vcpu mem balloonMem user interfaces volumes shares socket devices hugepageMem graphics bootDisk storeDisk storeOnDisk;

# balloon
Expand All @@ -14,11 +14,6 @@ let
# Transform attrs to parameters in form of `key1=value1,key2=value2,[...]`
opsMapped = ops: lib.concatStringsSep "," (lib.mapAttrsToList (k: v: "${k}=${v}") ops);

kernelPath = {
x86_64-linux = "${kernel.dev}/vmlinux";
aarch64-linux = "${kernel.out}/${pkgs.stdenv.hostPlatform.linux-kernel.target}";
}.${system};

# Attrs representing CHV mem options
memOps = opsMapped ({
size = "${toString mem}M";
Expand Down
3 changes: 0 additions & 3 deletions nixos-modules/microvm/asserts.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{ config, options, lib, ... }:
let
self-lib = import ../../lib {
nixpkgs-lib = lib;
};

inherit (config.networking) hostName;
in
Expand Down

0 comments on commit a90a571

Please sign in to comment.