Skip to content

Commit

Permalink
fix: allow chaostheatre to run in vm
Browse files Browse the repository at this point in the history
  • Loading branch information
Swarsel committed Dec 19, 2024
1 parent 916bb9c commit 57135bd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
11 changes: 9 additions & 2 deletions SwarselSystems.org
Original file line number Diff line number Diff line change
Expand Up @@ -1973,7 +1973,9 @@ This is the "reference implementation" of a setup that runs without NixOS, only

**** ChaosTheatre (Demo)

My work machine. Built for more security, this is the gold standard of my configurations at the moment.
This is just a demo host. It applies all the configuration found in the common parts of the flake, but disables all secrets-related features (as they would not work without the proper SSH keys).

I also set the =WLR_ALLOW_SOFTWARE_RENDERER=1= to allow this configuration to run in a virtualized environment. I also enable =qemuGuest= for a smoother experience when testing on QEMU.


#+begin_src nix :tangle hosts/nixos/chaostheatre/default.nix
Expand All @@ -1991,7 +1993,7 @@ My work machine. Built for more security, this is the gold standard of my config

inputs.home-manager.nixosModules.home-manager
{
home-manager.users.swarsel.imports = outputs.mixedModules ++ (builtins.attrValues outputs.homeManagerModules);
home-manager.users.swarsel.imports = outputs.mixedModules ++ (builtins.attrValues outputs.homeManagerModules);
}
] ++ (builtins.attrValues outputs.nixosModules);

Expand All @@ -2003,6 +2005,11 @@ My work machine. Built for more security, this is the gold standard of my config
};
};

environment.variables = {
WLR_ALLOW_SOFTWARE_RENDERER = 1;
};

services.qemuGuest.enable = true;

boot = {
loader.systemd-boot.enable = lib.mkForce true;
Expand Down
5 changes: 5 additions & 0 deletions hosts/nixos/chaostheatre/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ in
};
};

environment.variables = {
WLR_ALLOW_SOFTWARE_RENDERER = 1;
};

services.qemuGuest.enable = true;

boot = {
loader.systemd-boot.enable = lib.mkForce true;
Expand Down

0 comments on commit 57135bd

Please sign in to comment.