Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vm-check: init #150

Draft
wants to merge 8 commits into
base: central
Choose a base branch
from
Draft

vm-check: init #150

wants to merge 8 commits into from

Conversation

Kreyren
Copy link
Member

@Kreyren Kreyren commented Dec 25, 2024

Fixes: #148

End Goal: Make all systems testable via VM

@Kreyren Kreyren self-assigned this Dec 25, 2024
@Kreyren
Copy link
Member Author

Kreyren commented Dec 25, 2024

Shit doesn't work and drives me insane rn..

@Kreyren Kreyren mentioned this pull request Dec 25, 2024
2 tasks
@Kreyren
Copy link
Member Author

Kreyren commented Dec 29, 2024

Couldn't make it to work reliably so far:

  • Enabling auto-login breaks the whole virtualized OS as it won't be able to transition from initrd to the functioning system for some reason and holds on a blackscreen.
  • Deploying impermanent home-manager causes transport point not connected errors (likely fuse related?) Solved
  • Trying to change anything in disko.* causes no type option error
  • Likely more to come..

Doesn't seem to be a QEMU related, just probably bugs in disko.

CC @Enzime @Lassulus @iFreilicht (disko maintainers) -- Are these issues within the scope of your maintanance of disko or am i on my own here? (i am banned by NixOS Foundation so i can't work on these issues in your upstream unless you will accept patches from me somehow and i don't feel safe at the current nixos community to pursue unban rn)

disko.devices.disk.system.content.partitions.swap.size = mkForce null; # Unset swap partition
disko.devices.disk.system.content.partitions.store.content.passwordFile = mkForce (pkgs.writeText "ignucius-disks-password" "000000").outPath; # Without trying to do this the VM deployment will fail as it can't find the agenix file

error:
       … while calling the 'head' builtin
         at /nix/store/nrwvqc2kgl7zvkhyjwg3cgh2jngs12jz-source/lib/attrsets.nix:1574:11:
         1573|         || pred here (elemAt values 1) (head values) then
         1574|           head values
             |           ^
         1575|         else

       … while evaluating the attribute 'optionalValue.value'
         at /nix/store/nrwvqc2kgl7zvkhyjwg3cgh2jngs12jz-source/lib/modules.nix:863:5:
          862|
          863|     optionalValue =
             |     ^
          864|       if isDefined then { value = mergedValue; }

       … while evaluating the option `virtualisation.vmVariantWithDisko':

       … while evaluating the option `virtualisation.vmVariantWithDisko.disko.devices._config':

       … while evaluating the option `virtualisation.vmVariantWithDisko.disko.devices.disk.system._config':

       … while evaluating the option `virtualisation.vmVariantWithDisko.disko.devices.disk.system.content':

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: No type option set in:
       {
         partitions = {
           swap = {
             size = {
               _type = "override";
               content = null;
               priority = 50;
             };
           };
         };
       }       

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

QA: Adjust systems to be testable in VM
1 participant