Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ereslibre committed Jan 9, 2024
1 parent 0243ade commit 0e624ec
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 33 deletions.
15 changes: 1 addition & 14 deletions checks/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,7 @@ let
} {
# 9pfs
id = "9pstore";
modules = [ ({ config, ... }: {
microvm = {
shares = [ {
proto = "9p";
tag = "ro-store";
source = "/nix/store";
mountPoint = "/nix/.ro-store";
} ];
testing.enableTest = builtins.elem config.microvm.hypervisor [
# Hypervisors that support 9p
"qemu" "crosvm" "kvmtool"
];
};
}) ];
modules = [];
} ]
# rw-store
[ {
Expand Down
9 changes: 1 addition & 8 deletions checks/startup-shutdown.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,7 @@ let
hostName = "microvm-test";
useDHCP = false;
};
microvm = {
volumes = [ {
mountPoint = "/var";
image = "var.img";
size = 32;
} ];
crosvm.pivotRoot = "/build/empty";
};
microvm = {};
systemd.services.poweroff-again = {
wantedBy = [ "multi-user.target" ];
serviceConfig.Type = "idle";
Expand Down
19 changes: 9 additions & 10 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
};

inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs.url = "git+file:///home/ereslibre/projects/NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
spectrum = {
url = "git+https://spectrum-os.org/git/spectrum";
Expand Down

0 comments on commit 0e624ec

Please sign in to comment.