aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/sharefs/test/configuration.nix
blob: d9c011bcd559d2a205ff4f8f8068410b49c498d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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";
    };
  };
}