aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/sharefs/test/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/sharefs/test/configuration.nix')
-rw-r--r--cmd/sharefs/test/configuration.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/cmd/sharefs/test/configuration.nix b/cmd/sharefs/test/configuration.nix
new file mode 100644
index 00000000..d9c011bc
--- /dev/null
+++ b/cmd/sharefs/test/configuration.nix
@@ -0,0 +1,39 @@
+{ pkgs, ... }:
+{
+ users.users = {
+ alice = {
+ isNormalUser = true;
+ description = "Alice Foobar";
+ password = "foobar";
+ uid = 1000;
+ };
+ };
+
+ home-manager.users.alice.home.stateVersion = "24.11";
+
+ # Automatically login on tty1 as a normal user:
+ services.getty.autologinUser = "alice";
+
+ # For benchmarking sharefs:
+ environment.systemPackages = [ pkgs.fsmark ];
+
+ virtualisation = {
+ diskSize = 6 * 1024;
+
+ qemu.options = [
+ # Increase test performance:
+ "-smp 8"
+ ];
+ };
+
+ environment.hakurei = rec {
+ enable = true;
+ stateDir = "/var/lib/hakurei";
+ sharefs.source = "${stateDir}/sdcard";
+ users.alice = 0;
+
+ extraHomeConfig = {
+ home.stateVersion = "23.05";
+ };
+ };
+}