test: microVM test

This commit is contained in:
Nick 2025-11-04 03:30:52 -06:00
parent bd1d74997d
commit f15baf7ccb
21 changed files with 405 additions and 529 deletions

View file

@ -13,20 +13,20 @@ let
in
{
fileSystems =
let
storageDrives = [
"storage0"
];
# let
# storageDrives = [
# "storage0"
# ];
storageMounts = storage: {
name = "${ceres.${storage}.mount}";
value = {
device = ceres.${storage}.device;
fsType = "ext4";
options = ceres.${storage}.options;
};
};
in
# storageMounts = storage: {
# name = "${ceres.${storage}.mount}";
# value = {
# device = ceres.${storage}.device;
# fsType = "ext4";
# options = ceres.${storage}.options;
# };
# };
# in
{
"/" = {
device = "/dev/disk/by-uuid/de4e681b-0667-4bf8-8d6e-c50894aa41cd";
@ -36,8 +36,8 @@ in
device = "/dev/disk/by-uuid/C68D-B1C0";
fsType = "vfat";
};
}
// (builtins.listToAttrs (map storageMounts storageDrives));
};
# // (builtins.listToAttrs (map storageMounts storageDrives));
swapDevices = [
{ device = "/dev/disk/by-uuid/259fcc06-912c-4bd3-b781-8f77449e935a"; }
@ -45,7 +45,7 @@ in
systemd.tmpfiles.rules = [
"Z ${config.home-manager.users.${user0}.home.homeDirectory} 0755 ${user0} users -"
"Z ${ceres.storage0.mount} 2775 root root -"
# "Z ${ceres.storage0.mount} 2775 root root -"
];
services.udisks2.enable = true;