aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/interactive/hakurei.nix
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-05 21:31:36 +0900
committerOphestra <cat@gensokyo.uk>2025-08-07 02:46:04 +0900
commit72a931a71a4722c0e56b231d07787bef608ceedc (patch)
tree7de0a75a8d091ceb78f89a040af79f9c806710f3 /test/interactive/hakurei.nix
parent9a25542c6d23fd4dc12f25fa914e6f560f4d7324 (diff)
nix: interactive nixos vm
This is useful for quickly spinning up an ephemeral hakurei environment for testing changes or reproducing vm test failures. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/interactive/hakurei.nix')
-rw-r--r--test/interactive/hakurei.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/interactive/hakurei.nix b/test/interactive/hakurei.nix
new file mode 100644
index 00000000..3c96b3c9
--- /dev/null
+++ b/test/interactive/hakurei.nix
@@ -0,0 +1,25 @@
+{ pkgs, ... }:
+{
+ environment.hakurei = {
+ enable = true;
+ stateDir = "/var/lib/hakurei";
+ users.alice = 0;
+ apps = {
+ "cat.gensokyo.extern.foot.noEnablements" = {
+ name = "ne-foot";
+ identity = 1;
+ shareUid = true;
+ verbose = true;
+ share = pkgs.foot;
+ packages = [ pkgs.foot ];
+ command = "foot";
+ capability = {
+ dbus = false;
+ pulse = false;
+ };
+ };
+ };
+
+ extraHomeConfig.home.stateVersion = "23.05";
+ };
+}