Skip to content

Commit 9af43b7

Browse files
Fix deadnix
1 parent 80bddbd commit 9af43b7

File tree

11 files changed

+15
-17
lines changed

11 files changed

+15
-17
lines changed

checks/shutdown-command.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ self, nixpkgs, system, makeTestConfigs }:
1+
{ nixpkgs, system, makeTestConfigs, ... }:
22

33
let
44
pkgs = nixpkgs.legacyPackages.${system};

checks/startup-shutdown.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ self, nixpkgs, system, makeTestConfigs }:
1+
{ nixpkgs, system, makeTestConfigs, ... }:
22

33
let
44
pkgs = nixpkgs.legacyPackages.${system};

examples/graphics.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ nixpkgs.lib.nixosSystem {
1010
# this runs as a MicroVM
1111
self.nixosModules.microvm
1212

13-
({ config, lib, pkgs, ... }: {
13+
({ lib, pkgs, ... }: {
1414
microvm = {
1515
hypervisor = "cloud-hypervisor";
1616
graphics.enable = true;

examples/microvms-host.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ nixpkgs.lib.nixosSystem {
1010
# this runs as a MicroVM that nests MicroVMs
1111
self.nixosModules.microvm
1212

13-
({ config, lib, pkgs, ... }:
13+
({ config, lib, ... }:
1414
let
1515
inherit (self.lib) hypervisors;
1616

examples/qemu-vnc.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ nixpkgs.lib.nixosSystem {
1616
# this runs as a MicroVM
1717
self.nixosModules.microvm
1818

19-
({ config, lib, pkgs, ... }: {
19+
({ lib, pkgs, ... }: {
2020
microvm = {
2121
hypervisor = "qemu";
2222
graphics.enable = true;

flake.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
lib = import ./lib { inherit (nixpkgs) lib; };
131131

132132
overlay = final: super: {
133-
cloud-hypervisor-graphics = import "${spectrum}/pkgs/cloud-hypervisor" { inherit final super; };
133+
cloud-hypervisor-graphics = import "${spectrum}/pkgs/cloud-hypervisor" { inherit final super; };
134134
};
135135
overlays.default = self.overlay;
136136

@@ -160,7 +160,7 @@
160160
inherit system;
161161
modules = [
162162
self.nixosModules.microvm
163-
({ config, lib, ... }: {
163+
({ lib, ... }: {
164164
system.stateVersion = lib.trivial.release;
165165

166166
networking.hostName = "${hypervisor}-microvm";
@@ -209,7 +209,7 @@
209209
nixpkgs.lib.optionalAttrs (builtins.elem hypervisor self.lib.hypervisorsWithNetwork) {
210210
"${system}-${hypervisor}-example-with-tap" = makeExample {
211211
inherit system hypervisor;
212-
config = { lib, ...}: {
212+
config = _: {
213213
microvm.interfaces = [ {
214214
type = "tap";
215215
id = "vm-${builtins.substring 0 4 hypervisor}";

lib/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ rec {
1414

1515
defaultFsType = "ext4";
1616

17-
withDriveLetters = { volumes, hypervisor, storeOnDisk, ... }:
17+
withDriveLetters = { volumes, storeOnDisk, ... }:
1818
let
1919
offset =
2020
if storeOnDisk

lib/runners/stratovirt.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ in {
124124
}"
125125
]) (enumerate 0 volumes) ++
126126
lib.optionals (shares != []) (
127-
builtins.concatMap ({ proto, index, socket, source, tag, ... }: {
127+
builtins.concatMap ({ proto, index, socket, tag, ... }: {
128128
"virtiofs" = [
129129
"-chardev"
130130
"socket,id=fs${toString index},path=${socket}"

nixos-modules/microvm/graphics.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
let
44
# TODO: did not get sommelier to work
5-
run-sommelier = with pkgs; writeShellScriptBin "run-sommelier" ''
6-
exec ${lib.getExe sommelier} --virtgpu-channel -- $@
7-
'';
5+
# run-sommelier = with pkgs; writeShellScriptBin "run-sommelier" ''
6+
# exec ${lib.getExe sommelier} --virtgpu-channel -- $@
7+
# '';
88
# Working: run Wayland applications prefixed with `run-wayland-proxy`
99
run-wayland-proxy = with pkgs; writeShellScriptBin "run-wayland-proxy" ''
1010
exec ${lib.getExe wayland-proxy-virtwl} --virtio-gpu -- $@
@@ -17,7 +17,7 @@ in
1717
lib.mkIf config.microvm.graphics.enable {
1818
boot.kernelModules = [ "drm" "virtio_gpu" ];
1919

20-
environment.systemPackages = with pkgs; [
20+
environment.systemPackages = [
2121
#run-sommelier
2222
run-wayland-proxy
2323
run-waypipe

nixos-modules/microvm/store-disk.nix

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ let
55
rootPaths = [ config.system.build.toplevel ];
66
};
77

8-
kernelAtLeast = lib.versionAtLeast config.boot.kernelPackages.kernel.version;
9-
108
erofs-utils =
119
# Are any extended options specified?
1210
if lib.any (with lib; flip elem ["-Ededupe" "-Efragments"]) config.microvm.storeDiskErofsFlags

0 commit comments

Comments
 (0)